[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ -> ContainerInterface.php (summary)

(no description)

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

Defines 1 class

ContainerInterface:: (11 methods):
  set()
  get()
  has()
  getParameter()
  hasParameter()
  setParameter()
  enterScope()
  leaveScope()
  addScope()
  hasScope()
  isScopeActive()


Interface: ContainerInterface  - X-Ref

ContainerInterface is the interface implemented by service container classes.

set($id, $service, $scope = self::SCOPE_CONTAINER)   X-Ref
Sets a service.

param: string $id      The service identifier
param: object $service The service instance
param: string $scope   The scope of the service

get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)   X-Ref
Gets a service.

param: string $id              The service identifier
param: int    $invalidBehavior The behavior when the service does not exist
return: object The associated service

has($id)   X-Ref
Returns true if the given service is defined.

param: string $id The service identifier
return: bool true if the service is defined, false otherwise

getParameter($name)   X-Ref
Gets a parameter.

param: string $name The parameter name
return: mixed The parameter value

hasParameter($name)   X-Ref
Checks if a parameter exists.

param: string $name The parameter name
return: bool The presence of parameter in container

setParameter($name, $value)   X-Ref
Sets a parameter.

param: string $name  The parameter name
param: mixed  $value The parameter value

enterScope($name)   X-Ref
Enters the given scope.

param: string $name

leaveScope($name)   X-Ref
Leaves the current scope, and re-enters the parent scope.

param: string $name

addScope(ScopeInterface $scope)   X-Ref
Adds a scope to the container.

param: ScopeInterface $scope

hasScope($name)   X-Ref
Whether this container has the given scope.

param: string $name
return: bool

isScopeActive($name)   X-Ref
Determines whether the given scope is currently active.

It does however not check if the scope actually exists.

param: string $name
return: bool



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1