Translator::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string) array $parameters An array of parameters for the message string|null $domain The domain for the message or null to use the default string|null $locale The locale or null to use the default Return Value string The translated string Exceptions InvalidArgum

Data

class Data Methods __construct(array $data) array getRawData() Data withMaxDepth(int $maxDepth) Returns a depth limited clone of $this. Data withMaxItemsPerDepth(int $maxItemsPerDepth) Limits the number of elements per depth level. Data withRefHandles(bool $useRefHandles) Enables/disables objects' identifiers tracking. dump(DumperInterface $dumper) Dumps data with a DumperInterface dumper. Details __construct(array $data)

ExecutionContextInterface::setConstraint()

setConstraint(Constraint $constraint) Sets the currently validated constraint. Parameters Constraint $constraint The validated constraint

Parser::parse()

SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return Value SelectorNode[]

StreamedResponse::setContent()

Response setContent(mixed $content) Sets the response content. Valid types are strings, numbers, null, and objects that implement a __toString() method. Parameters mixed $content Content that can be cast to string Return Value Response Exceptions UnexpectedValueException

WinCacheClassLoader

class WinCacheClassLoader WinCacheClassLoader implements a wrapping autoloader cached in WinCache. It expects an object implementing a findFile method to find the file. This allow using it as a wrapper around the other loaders of the component (the ClassLoader for instance) but also around any other autoloaders following this convention (the Composer one for instance). // with a Symfony autoloader $loader = new ClassLoader(); $loader->addPrefix('Symfony\Component', __DIR__.'/component');

ParserCacheInterface::fetch()

ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Parameters string $key The cache key Return Value ParsedExpression|null

GeneratorConfig::getBundleWriters()

BundleWriterInterface[] getBundleWriters() Returns the writers indexed by their output directories. Return Value BundleWriterInterface[]

MaskBuilder::remove()

MaskBuilder remove(mixed $mask) Removes a mask from the permission Parameters mixed $mask Return Value MaskBuilder Exceptions InvalidArgumentException

Finder::ignoreUnreadableDirs()

Finder|SplFileInfo[] ignoreUnreadableDirs(bool $ignore = true) Tells finder to ignore unreadable directories. By default, scanning unreadable directories content throws an AccessDeniedException. Parameters bool $ignore Return Value Finder|SplFileInfo[] The current Finder instance