[ Index ]

PHP Cross Reference of phpBB-3.3.12-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

Definition:: (64 methods):
  __construct()
  getChanges()
  setChanges()
  setFactory()
  getFactory()
  setDecoratedService()
  getDecoratedService()
  setClass()
  getClass()
  setArguments()
  setProperties()
  getProperties()
  setProperty()
  addArgument()
  replaceArgument()
  setArgument()
  getArguments()
  getArgument()
  setMethodCalls()
  addMethodCall()
  removeMethodCall()
  hasMethodCall()
  getMethodCalls()
  setInstanceofConditionals()
  getInstanceofConditionals()
  setAutoconfigured()
  isAutoconfigured()
  setTags()
  getTags()
  getTag()
  addTag()
  hasTag()
  clearTag()
  clearTags()
  setFile()
  getFile()
  setShared()
  isShared()
  setPublic()
  isPublic()
  setPrivate()
  isPrivate()
  setLazy()
  isLazy()
  setSynthetic()
  isSynthetic()
  setAbstract()
  isAbstract()
  setDeprecated()
  isDeprecated()
  getDeprecationMessage()
  setConfigurator()
  getConfigurator()
  setAutowiringTypes()
  isAutowired()
  setAutowired()
  getAutowiringTypes()
  addAutowiringType()
  removeAutowiringType()
  hasAutowiringType()
  getBindings()
  setBindings()
  addError()
  getErrors()


Class: Definition  - X-Ref

Definition represents a service definition.

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

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

getChanges()   X-Ref
Returns all changes tracked for the Definition object.

return: array An array of changes for this Definition

setChanges(array $changes)   X-Ref
Sets the tracked changes for the Definition object.

return: $this
param: array $changes An array of changes for this Definition

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

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

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

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

return: $this
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

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

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

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

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.

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

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

return: $this
param: mixed $argument An argument

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

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

setArgument($key, $value)   X-Ref
Sets a specific argument.

return: $this
param: int|string $key
param: mixed      $value

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.

return: mixed The argument value
param: int|string $index

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

return: $this

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

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

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

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

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

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

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

return: array An array of method calls

setInstanceofConditionals(array $instanceof)   X-Ref
Sets the definition templates to conditionally apply on the current definition, keyed by parent interface/class.

return: $this
param: ChildDefinition[] $instanceof

getInstanceofConditionals()   X-Ref
Gets the definition templates to conditionally apply on the current definition, keyed by parent interface/class.

return: ChildDefinition[]

setAutoconfigured($autoconfigured)   X-Ref
Sets whether or not instanceof conditionals should be prepended with a global set.

return: $this
param: bool $autoconfigured

isAutoconfigured()   X-Ref

return: bool

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.

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

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

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

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

return: bool
param: string $name

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

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

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

return: $this

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

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

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.

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

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

return: bool

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

return: $this
param: bool $boolean

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

return: bool

setPrivate($boolean)   X-Ref
Sets if this service is private.

When set, the "private" state has a higher precedence than "public".
In version 3.4, a "private" service always remains publicly accessible,
but triggers a deprecation notice when accessed from the container,
so that the service can be made really private in 4.0.

return: $this
param: bool $boolean

isPrivate()   X-Ref
Whether this service is private.

return: bool

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

return: $this
param: bool $lazy

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.

return: $this
param: bool $boolean

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.

return: $this
param: bool $boolean

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.

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

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.

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

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

return: $this
param: string|array $configurator A PHP callable

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

return: callable|array|null

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

return: $this
param: string[] $types

isAutowired()   X-Ref
Is the definition autowired?

return: bool

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

return: $this
param: bool $autowired

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.

return: $this
param: string $type

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

return: $this
param: string $type

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

return: bool
param: string $type

getBindings()   X-Ref
Gets bindings.

return: array

setBindings(array $bindings)   X-Ref
Sets bindings.

Bindings map $named or FQCN arguments to values that should be
injected in the matching parameters (of the constructor, of methods
called and of controller actions).

return: $this

addError($error)   X-Ref
Add an error that occurred when building this Definition.

param: string $error

getErrors()   X-Ref
Returns any errors that occurred while building this Definition.

return: array



Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1