BaseNode::setNormalizationClosures()

setNormalizationClosures(array $closures) Sets the closures used for normalization. Parameters array $closures An array of Closures used for normalization

CodeHelper::fileExcerpt()

string fileExcerpt(string $file, int $line) Returns an excerpt of a code file around the given line number. Parameters string $file A file path int $line The selected line number Return Value string An HTML string

RegistryInterface::getEntityNamespace()

string getEntityNamespace(string $alias) Resolves a registered namespace alias to the full namespace. This method looks for the alias in all registered entity managers. Parameters string $alias The alias Return Value string The full namespace See also Configuration::getEntityNamespace

ExpressionVoter::vote()

int vote(TokenInterface $token, mixed $subject, array $attributes) Returns the vote for the given parameters. This method must return one of the following constants: ACCESSGRANTED, ACCESSDENIED, or ACCESS_ABSTAIN. Parameters TokenInterface $token A TokenInterface instance mixed $subject The subject to secure array $attributes An array of attributes associated with the method being invoked Return Value int either ACCESSGRANTED, ACCESSABSTAIN, or ACCESS_DENIED

BufferedBundleReader::getLocales()

string[] getLocales(string $path) Reads the available locales of a resource bundle. Parameters string $path The path to the resource bundle. Return Value string[] A list of supported locale codes.

BooleanNode

class BooleanNode extends ScalarNode This node represents a Boolean value in the config tree. Methods __construct(string $name, NodeInterface $parent = null) Constructor. from BaseNode setAttribute($key, $value) from BaseNode getAttribute($key, $default = null) from BaseNode hasAttribute($key) from BaseNode getAttributes() from BaseNode setAttributes(array $attributes) from BaseNode removeAttribute($key) from BaseNode setInfo(string $info) Sets an info m

Locale

class Locale extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_LOCALE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods static

PreviewErrorController

class PreviewErrorController PreviewErrorController can be used to test error pages. It will create a test exception and forward it to another controller. Methods __construct(HttpKernelInterface $kernel, $controller) previewErrorPageAction(Request $request, $code) Details __construct(HttpKernelInterface $kernel, $controller) Parameters HttpKernelInterface $kernel $controller previewErrorPageAction(Reque

CacheItem::log()

static log(LoggerInterface $logger = null, $message, $context = array()) Internal logging helper. Parameters LoggerInterface $logger $message $context

RingBuffer::offsetSet()

offsetSet($key, $value) {@inheritdoc} Parameters $key $value