[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/dependency-injection/ -> Definition.php (summary)

(no description)

File Size: 931 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Definition:: (61 methods):
  __construct()
  setFactory()
  getFactory()
  setFactoryClass()
  getFactoryClass()
  setFactoryMethod()
  setDecoratedService()
  getDecoratedService()
  getFactoryMethod()
  setFactoryService()
  getFactoryService()
  setClass()
  getClass()
  setArguments()
  setProperties()
  getProperties()
  setProperty()
  addArgument()
  replaceArgument()
  getArguments()
  getArgument()
  setMethodCalls()
  addMethodCall()
  removeMethodCall()
  hasMethodCall()
  getMethodCalls()
  setTags()
  getTags()
  getTag()
  addTag()
  hasTag()
  clearTag()
  clearTags()
  setFile()
  getFile()
  setShared()
  isShared()
  setScope()
  getScope()
  setPublic()
  isPublic()
  setSynchronized()
  isSynchronized()
  setLazy()
  isLazy()
  setSynthetic()
  isSynthetic()
  setAbstract()
  isAbstract()
  setDeprecated()
  isDeprecated()
  getDeprecationMessage()
  setConfigurator()
  getConfigurator()
  setAutowiringTypes()
  isAutowired()
  setAutowired()
  getAutowiringTypes()
  addAutowiringType()
  removeAutowiringType()
  hasAutowiringType()


Class: Definition  - X-Ref

Definition represents a service definition.

__construct($class = null, array $arguments = array()   X-Ref

param: string|null $class     The service class
param: array       $arguments An array of arguments to pass to the service constructor

setFactory($factory)   X-Ref
Sets a factory.

param: string|array $factory A PHP function or an array containing a class/Reference and a method to call
return: $this

getFactory()   X-Ref
Gets the factory.

return: string|array|null The PHP function or an array containing a class/Reference and a method to call

setFactoryClass($factoryClass)   X-Ref
Sets the name of the class that acts as a factory using the factory method,
which will be invoked statically.

param: string $factoryClass The factory class name
return: $this

getFactoryClass($triggerDeprecationError = true)   X-Ref
Gets the factory class.

return: string|null The factory class name

setFactoryMethod($factoryMethod)   X-Ref
Sets the factory method able to create an instance of this class.

param: string $factoryMethod The factory method name
return: $this

setDecoratedService($id, $renamedId = null, $priority = 0)   X-Ref
Sets the service that this service is decorating.

param: string|null $id        The decorated service id, use null to remove decoration
param: string|null $renamedId The new decorated service id
param: int         $priority  The priority of decoration
return: $this

getDecoratedService()   X-Ref
Gets the service that this service is decorating.

return: array|null An array composed of the decorated service id, the new id for it and the priority of decoration, null if no service is decorated

getFactoryMethod($triggerDeprecationError = true)   X-Ref
Gets the factory method.

return: string|null The factory method name

setFactoryService($factoryService, $triggerDeprecationError = true)   X-Ref
Sets the name of the service that acts as a factory using the factory method.

param: string $factoryService The factory service id
return: $this

getFactoryService($triggerDeprecationError = true)   X-Ref
Gets the factory service id.

return: string|null The factory service id

setClass($class)   X-Ref
Sets the service class.

param: string $class The service class
return: $this

getClass()   X-Ref
Gets the service class.

return: string|null The service class

setArguments(array $arguments)   X-Ref
Sets the arguments to pass to the service constructor/factory method.

return: $this

setProperties(array $properties)   X-Ref
Sets the properties to define when creating the service.

return: $this

getProperties()   X-Ref
Gets the properties to define when creating the service.

return: array

setProperty($name, $value)   X-Ref
Sets a specific property.

param: string $name
param: mixed  $value
return: $this

addArgument($argument)   X-Ref
Adds an argument to pass to the service constructor/factory method.

param: mixed $argument An argument
return: $this

replaceArgument($index, $argument)   X-Ref
Replaces a specific argument.

param: int   $index
param: mixed $argument
return: $this

getArguments()   X-Ref
Gets the arguments to pass to the service constructor/factory method.

return: array The array of arguments

getArgument($index)   X-Ref
Gets an argument to pass to the service constructor/factory method.

param: int $index
return: mixed The argument value

setMethodCalls(array $calls = array()   X-Ref
Sets the methods to call after service initialization.

return: $this

addMethodCall($method, array $arguments = array()   X-Ref
Adds a method to call after service initialization.

param: string $method    The method name to call
param: array  $arguments An array of arguments to pass to the method call
return: $this

removeMethodCall($method)   X-Ref
Removes a method to call after service initialization.

param: string $method The method name to remove
return: $this

hasMethodCall($method)   X-Ref
Check if the current definition has a given method to call after service initialization.

param: string $method The method name to search for
return: bool

getMethodCalls()   X-Ref
Gets the methods to call after service initialization.

return: array An array of method calls

setTags(array $tags)   X-Ref
Sets tags for this definition.

return: $this

getTags()   X-Ref
Returns all tags.

return: array An array of tags

getTag($name)   X-Ref
Gets a tag by name.

param: string $name The tag name
return: array An array of attributes

addTag($name, array $attributes = array()   X-Ref
Adds a tag for this definition.

param: string $name       The tag name
param: array  $attributes An array of attributes
return: $this

hasTag($name)   X-Ref
Whether this definition has a tag with the given name.

param: string $name
return: bool

clearTag($name)   X-Ref
Clears all tags for a given name.

param: string $name The tag name
return: $this

clearTags()   X-Ref
Clears the tags for this definition.

return: $this

setFile($file)   X-Ref
Sets a file to require before creating the service.

param: string $file A full pathname to include
return: $this

getFile()   X-Ref
Gets the file to require before creating the service.

return: string|null The full pathname to include

setShared($shared)   X-Ref
Sets if the service must be shared or not.

param: bool $shared Whether the service must be shared or not
return: $this

isShared()   X-Ref
Whether this service is shared.

return: bool

setScope($scope, $triggerDeprecationError = true)   X-Ref
Sets the scope of the service.

param: string $scope Whether the service must be shared or not
return: $this

getScope($triggerDeprecationError = true)   X-Ref
Returns the scope of the service.

return: string

setPublic($boolean)   X-Ref
Sets the visibility of this service.

param: bool $boolean
return: $this

isPublic()   X-Ref
Whether this service is public facing.

return: bool

setSynchronized($boolean, $triggerDeprecationError = true)   X-Ref
Sets the synchronized flag of this service.

param: bool $boolean
return: $this

isSynchronized($triggerDeprecationError = true)   X-Ref
Whether this service is synchronized.

return: bool

setLazy($lazy)   X-Ref
Sets the lazy flag of this service.

param: bool $lazy
return: $this

isLazy()   X-Ref
Whether this service is lazy.

return: bool

setSynthetic($boolean)   X-Ref
Sets whether this definition is synthetic, that is not constructed by the
container, but dynamically injected.

param: bool $boolean
return: $this

isSynthetic()   X-Ref
Whether this definition is synthetic, that is not constructed by the
container, but dynamically injected.

return: bool

setAbstract($boolean)   X-Ref
Whether this definition is abstract, that means it merely serves as a
template for other definitions.

param: bool $boolean
return: $this

isAbstract()   X-Ref
Whether this definition is abstract, that means it merely serves as a
template for other definitions.

return: bool

setDeprecated($status = true, $template = null)   X-Ref
Whether this definition is deprecated, that means it should not be called
anymore.

param: bool   $status
param: string $template Template message to use if the definition is deprecated
return: $this

isDeprecated()   X-Ref
Whether this definition is deprecated, that means it should not be called
anymore.

return: bool

getDeprecationMessage($id)   X-Ref
Message to use if this definition is deprecated.

param: string $id Service id relying on this definition
return: string

setConfigurator($callable)   X-Ref
Sets a configurator to call after the service is fully initialized.

param: callable $callable A PHP callable
return: $this

getConfigurator()   X-Ref
Gets the configurator to call after the service is fully initialized.

return: callable|null The PHP callable to call

setAutowiringTypes(array $types)   X-Ref
Sets types that will default to this definition.

param: string[] $types
return: $this

isAutowired()   X-Ref
Is the definition autowired?

return: bool

setAutowired($autowired)   X-Ref
Enables/disables autowiring.

param: bool $autowired
return: $this

getAutowiringTypes()   X-Ref
Gets autowiring types that will default to this definition.

return: string[]

addAutowiringType($type)   X-Ref
Adds a type that will default to this definition.

param: string $type
return: $this

removeAutowiringType($type)   X-Ref
Removes a type.

param: string $type
return: $this

hasAutowiringType($type)   X-Ref
Will this definition default for the given type?

param: string $type
return: bool



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1