메소드 |
설명 |
|
__construct ( string | null $class = null, array $arguments = [] ) |
|
|
addArgument ( mixed $argument ) : Definition |
Adds an argument to pass to the service constructor/factory method. |
|
addAutowiringType ( string $type ) : Definition |
Adds a type that will default to this definition. |
|
addMethodCall ( string $method, array $arguments = [] ) : Definition |
Adds a method to call after service initialization. |
|
addTag ( string $name, array $attributes = [] ) : Definition |
Adds a tag for this definition. |
|
clearTag ( string $name ) : Definition |
Clears all tags for a given name. |
|
clearTags ( ) : Definition |
Clears the tags for this definition. |
|
getArgument ( integer $index ) : mixed |
Gets an argument to pass to the service constructor/factory method. |
|
getArguments ( ) : array |
Gets the arguments to pass to the service constructor/factory method. |
|
getAutowiredMethods ( ) : string[] |
Gets autowired methods. |
|
getAutowiringTypes ( ) : string[] |
Gets autowiring types that will default to this definition. |
|
getClass ( ) : string | null |
Gets the service class. |
|
getConfigurator ( ) : callable | null |
Gets the configurator to call after the service is fully initialized. |
|
getDecoratedService ( ) : null | array |
Gets the service that decorates this service. |
|
getDeprecationMessage ( string $id ) : string |
Message to use if this definition is deprecated. |
|
getFactory ( ) : string | array |
Gets the factory. |
|
getFile ( ) : string | null |
Gets the file to require before creating the service. |
|
getMethodCalls ( ) : array |
Gets the methods to call after service initialization. |
|
getProperties ( ) |
|
|
getTag ( string $name ) : array |
Gets a tag by name. |
|
getTags ( ) : array |
Returns all tags. |
|
hasAutowiringType ( string $type ) : boolean |
Will this definition default for the given type? |
|
hasMethodCall ( string $method ) : boolean |
Check if the current definition has a given method to call after service initialization. |
|
hasTag ( string $name ) : boolean |
Whether this definition has a tag with the given name. |
|
isAbstract ( ) : boolean |
Whether this definition is abstract, that means it merely serves as a
template for other definitions. |
|
isAutowired ( ) : boolean |
Is the definition autowired? |
|
isDeprecated ( ) : boolean |
Whether this definition is deprecated, that means it should not be called
anymore. |
|
isLazy ( ) : boolean |
Whether this service is lazy. |
|
isPublic ( ) : boolean |
Whether this service is public facing. |
|
isShared ( ) : boolean |
Whether this service is shared. |
|
isSynthetic ( ) : boolean |
Whether this definition is synthetic, that is not constructed by the
container, but dynamically injected. |
|
removeAutowiringType ( string $type ) : Definition |
Removes a type. |
|
removeMethodCall ( string $method ) : Definition |
Removes a method to call after service initialization. |
|
replaceArgument ( integer $index, mixed $argument ) : Definition |
Sets a specific argument. |
|
setAbstract ( boolean $boolean ) : Definition |
Whether this definition is abstract, that means it merely serves as a
template for other definitions. |
|
setArguments ( array $arguments ) : Definition |
Sets the arguments to pass to the service constructor/factory method. |
|
setAutowired ( boolean $autowired ) : Definition |
Sets autowired. |
|
setAutowiredMethods ( array $autowiredMethods ) : Definition |
Sets autowired methods. |
|
setAutowiringTypes ( array $types ) : Definition |
Sets types that will default to this definition. |
|
setClass ( string $class ) : Definition |
Sets the service class. |
|
setConfigurator ( string | array $configurator ) : Definition |
Sets a configurator to call after the service is fully initialized. |
|
setDecoratedService ( null | string $id, null | string $renamedId = null, integer $priority ) : Definition |
Sets the service that this service is decorating. |
|
setDeprecated ( boolean $status = true, string $template = null ) : Definition |
Whether this definition is deprecated, that means it should not be called
anymore. |
|
setFactory ( string | array $factory ) : Definition |
Sets a factory. |
|
setFile ( string $file ) : Definition |
Sets a file to require before creating the service. |
|
setLazy ( boolean $lazy ) : Definition |
Sets the lazy flag of this service. |
|
setMethodCalls ( array $calls = [] ) : Definition |
Sets the methods to call after service initialization. |
|
setProperties ( array $properties ) |
|
|
setProperty ( $name, $value ) |
|
|
setPublic ( boolean $boolean ) : Definition |
Sets the visibility of this service. |
|
setShared ( boolean $shared ) : Definition |
Sets if the service must be shared or not. |
|
setSynthetic ( boolean $boolean ) : Definition |
Sets whether this definition is synthetic, that is not constructed by the
container, but dynamically injected. |
|
setTags ( array $tags ) : Definition |
Sets tags for this definition. |
|