Symfony\Component\DependencyInjection\DefinitionDecorator
This definition decorates another definition.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class DefinitionDecorator
extends Definition
{
- // Inherited members from Definition
- protected $arguments;
- // methods
- public void __construct()
- public string getParent()
- public array getChanges()
- public void setClass()
- public void setFactoryClass()
- public void setFactoryMethod()
- public void setFactoryService()
- public void setConfigurator()
- public void setFile()
- public void setPublic()
- public mixed getArgument()
- public DefinitionDecorator replaceArgument()
- // Inherited methods from Definition
- public void __construct()
- public Definition setFactoryClass()
- public string getFactoryClass()
- public Definition setFactoryMethod()
- public string getFactoryMethod()
- public Definition setFactoryService()
- public string getFactoryService()
- public Definition setClass()
- public string getClass()
- public Definition setArguments()
- public void setProperties()
- public void getProperties()
- public void setProperty()
- public Definition addArgument()
- public Definition replaceArgument()
- public array getArguments()
- public mixed getArgument()
- public Definition setMethodCalls()
- public Definition addMethodCall()
- public Definition removeMethodCall()
- public Boolean hasMethodCall()
- public array getMethodCalls()
- public Definition setTags()
- public array getTags()
- public array getTag()
- public Definition addTag()
- public Boolean hasTag()
- public Definition clearTag()
- public Definition clearTags()
- public Definition setFile()
- public string getFile()
- public Definition setScope()
- public string getScope()
- public Definition setPublic()
- public Boolean isPublic()
- public Definition setSynchronized()
- public Boolean isSynchronized()
- public Definition setLazy()
- public Boolean isLazy()
- public Definition setSynthetic()
- public Boolean isSynthetic()
- public Definition setAbstract()
- public Boolean isAbstract()
- public Definition setConfigurator()
- public callable getConfigurator()
Hierarchy
Members
private
- $changes
- $parent
protected
- $arguments
Methods
public
- __construct() — Constructor.
- getArgument() — Gets an argument to pass to the service constructor/factory method.
- getChanges() — Returns all changes tracked for the Definition object.
- getParent() — Returns the Definition being decorated.
- replaceArgument() — You should always use this method when overwriting existing arguments of the parent definition.
- setClass() — {@inheritDoc}
- setConfigurator() — {@inheritDoc}
- setFactoryClass() — {@inheritDoc}
- setFactoryMethod() — {@inheritDoc}
- setFactoryService() — {@inheritDoc}
- setFile() — {@inheritDoc}
- setPublic() — {@inheritDoc}
Inherited from Symfony\Component\DependencyInjection\Definition
public
- addArgument() — Adds an argument to pass to the service constructor/factory method.
- addMethodCall() — Adds a method to call after service initialization.
- addTag() — Adds a tag for this definition.
- clearTag() — Clears all tags for a given name.
- clearTags() — Clears the tags for this definition.
- getArgument() — Gets an argument to pass to the service constructor/factory method.
- getArguments() — Gets the arguments to pass to the service constructor/factory method.
- getClass() — Gets the service class.
- getConfigurator() — Gets the configurator to call after the service is fully initialized.
- getFactoryClass() — Gets the factory class.
- getFactoryMethod() — Gets the factory method.
- getFactoryService() — Gets the factory service id.
- getFile() — Gets the file to require before creating the service.
- getMethodCalls() — Gets the methods to call after service initialization.
- getProperties()
- getScope() — Returns the scope of the service
- getTag() — Gets a tag by name.
- getTags() — Returns all tags.
- hasMethodCall() — Check if the current definition has a given method to call after service initialization.
- hasTag() — Whether this definition has a tag with the given name
- isAbstract() — Whether this definition is abstract, that means it merely serves as a template for other definitions.
- isLazy() — Whether this service is lazy.
- isPublic() — Whether this service is public facing
- isSynchronized() — Whether this service is synchronized.
- isSynthetic() — Whether this definition is synthetic, that is not constructed by the container, but dynamically injected.
- removeMethodCall() — Removes a method to call after service initialization.
- replaceArgument() — Sets a specific argument
- setAbstract() — Whether this definition is abstract, that means it merely serves as a template for other definitions.
- setArguments() — Sets the arguments to pass to the service constructor/factory method.
- setClass() — Sets the service class.
- setConfigurator() — Sets a configurator to call after the service is fully initialized.
- setFactoryClass() — Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.
- setFactoryMethod() — Sets the factory method able to create an instance of this class.
- setFactoryService() — Sets the name of the service that acts as a factory using the factory method.
- setFile() — Sets a file to require before creating the service.
- setLazy() — Sets the lazy flag of this service.
- setMethodCalls() — Sets the methods to call after service initialization.
- setProperties()
- setProperty()
- setPublic() — Sets the visibility of this service.
- setScope() — Sets the scope of the service
- setSynchronized() — Sets the synchronized flag of this service.
- setSynthetic() — Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.
- setTags() — Sets tags for this definition