Aviat\Ion\Di\ContainerInterface
Interface for the Dependency Injection Container
Based on container-interop interface, but return types and
scalar type hints make the interface incompatible to the PHP parser
Synopsis
interface ContainerInterface
{
- // methods
- public mixed get()
- public bool has()
- public ContainerInterface set()
- public ContainerInterface setInstance()
- public mixed getNew()
- public bool hasLogger()
- public ContainerInterface setLogger()
- public ?LoggerInterface getLogger()
Methods
public
- get() — Finds an entry of the container by its identifier and returns it.
- getLogger() — Retrieve a logger for the selected channel
- getNew() — Get a new instance of the specified item
- has() — Returns true if the container can return an entry for the given identifier.
- hasLogger() — Determine whether a logger channel is registered
- set() — Add a factory to the container
- setInstance() — Set a specific instance in the container for an existing factory
- setLogger() — Add a logger to the Container