ParameterBag

class ParameterBag implements ParameterBagInterface Holds parameters. Methods __construct(array $parameters = array()) clear() Clears all parameters. add(array $parameters) Adds parameters to the service container parameters. array all() Gets the service container parameters. mixed get(string $name) Gets a service container parameter. set(string $name, mixed $value) Sets a service container parameter. bool has(string $name) Returns true if a parameter name

ExprBuilder::always()

ExprBuilder always(Closure $then = null) Marks the expression as being always used. Parameters Closure $then Return Value ExprBuilder

ClassNode

class ClassNode extends AbstractNode Represents a "." node. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods string getNodeName() from AbstractNode __construct(NodeInterface $selector, string $name) NodeInterface getSelector() string getName() Specificity getSpecificity() Returns node's specificity. string __toString() Returns node's string representation. Details

Collator::create()

static Collator create(string $locale) Static constructor. Parameters string $locale The locale code. The only currently supported locale is "en" (or null using the default locale, i.e. "en") Return Value Collator Exceptions MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed

AbstractNormalizer::setIgnoredAttributes()

AbstractNormalizer setIgnoredAttributes(array $ignoredAttributes) Set ignored attributes for normalization and denormalization. Parameters array $ignoredAttributes Return Value AbstractNormalizer

DoctrineType::createChoiceName()

static string createChoiceName(object $choice, int|string $key, string $value) Creates the field name for a choice. This method is used to generate field names if the underlying object has a single-column integer ID. In that case, the value of the field is the ID of the object. That ID is also used as field name. Parameters object $choice The object int|string $key The choice key string $value The choice value. Corresponds to the object's ID here. Return Value string

TransformationRuleInterface::afterCompile()

afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation.

CacheLoader

class CacheLoader extends Loader CacheLoader is a loader that caches other loaders responses on the filesystem. This cache only caches on disk to allow PHP accelerators to cache the opcodes. All other mechanism would imply the use of eval(). Methods setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. from Loader __construct(LoaderInterface $loader, string $dir) Constructor. Storage|bool load(TemplateReferenceInterface $template) Loads a template.

ArrayNodeDefinition::prototype()

NodeDefinition prototype(string $type) Sets a prototype for child nodes. Parameters string $type the type of node Return Value NodeDefinition

AccessMap::add()

add(RequestMatcherInterface $requestMatcher, array $attributes = array(), string|null $channel = null) Constructor. Parameters RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance array $attributes An array of attributes to pass to the access decision manager (like roles) string|null $channel The channel to enforce (http, https, or null)