| 1 | <?php |
||
| 35 | trait PrefixedContainer |
||
| 36 | { |
||
| 37 | /** |
||
| 38 | * Container. |
||
| 39 | * |
||
| 40 | * @var \Pimple\Container |
||
| 41 | */ |
||
| 42 | protected $container; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * ContainerAccess constructor. |
||
| 46 | * |
||
| 47 | * @param \Pimple\Container $container |
||
| 48 | */ |
||
| 49 | public function __construct(Container $container) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Gets a parameter or an object from pimple container. |
||
| 56 | * |
||
| 57 | * @param string $key The unique identifier for the parameter or object |
||
| 58 | * |
||
| 59 | * @return mixed The value of the parameter or an object |
||
| 60 | * |
||
| 61 | * @throws \InvalidArgumentException if the identifier is not defined |
||
| 62 | */ |
||
| 63 | public function __get($key) |
||
| 71 | } |
||
| 72 |