Symfony\Component\DependencyInjection\Definition
Definition represents a service definition.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Definition
{
- // members
- private $class;
- private $file;
- private $factoryClass;
- private $factoryMethod;
- private $factoryService;
- private $scope;
- private $properties;
- private $calls;
- private $configurator;
- private $tags;
- private $public;
- private $synthetic;
- private $abstract;
- private $synchronized;
- private $lazy;
- protected $arguments;
- // methods
- 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
Extended by
Members
private
- $abstract
- $calls
- $class
- $configurator
- $factoryClass
- $factoryMethod
- $factoryService
- $file
- $lazy
- $properties
- $public
- $scope
- $synchronized
- $synthetic
protected
- $arguments
Methods
public
- __construct() — Constructor.
- 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