Container::get( string $id )
Finds an entry of the container by its identifier and returns it.
Contents
Parameters
- $id
-
(string) (Required) A fully qualified class or interface name or an already built object.
Return
(mixed) The entry for an id.
Source
File: src/Conference/Contracts/Container.php
public function get( $id ) {
try {
return parent::get( $id );
} catch ( \Exception $e ) {
// Do not chain the previous exception into ours, as it makes the error log confusing.
throw new Not_Bound_Exception( $e->getMessage(), $e->getCode() );
}
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |