Scope
in
Interface for injector scopes
Injectors implement a Chain of Responsibility pattern. This is the required interface for injectors to pass on responsibility to parent objects in the chain.
Tags
Table of Contents
- get() : mixed
- Returns instance of requested object if proper configuration has been provided.
- getBinder() : Binder|null
- Returns the Horde\Injector\Binder object mapped to the request interface if such a mapping exists
- getInstance() : mixed
- Returns instance of requested object if proper configuration has been provided.
- has() : bool
Methods
get()
Returns instance of requested object if proper configuration has been provided.
public
get(string $interface) : mixed
Parameters
- $interface : string
-
Interface name of object which is being requested.
Return values
mixed —getBinder()
Returns the Horde\Injector\Binder object mapped to the request interface if such a mapping exists
public
getBinder(string $interface) : Binder|null
Parameters
- $interface : string
-
Interface name of object whose binding if being retrieved.
Return values
Binder|null —getInstance()
Returns instance of requested object if proper configuration has been provided.
public
getInstance(string $interface) : mixed
Parameters
- $interface : string
-
Interface name of object which is being requested.
Return values
mixed —has()
public
has(string $interface) : bool
Parameters
- $interface : string