| 1 | <?php |
||
| 34 | abstract class ContainerAccess |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * Container prefix. |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | protected $containerPrefix; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Container. |
||
| 45 | * |
||
| 46 | * @var \Pimple\Container |
||
| 47 | */ |
||
| 48 | protected $container; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * MiniProgram constructor. |
||
| 52 | * |
||
| 53 | * @param \Pimple\Container $container |
||
| 54 | */ |
||
| 55 | public function __construct(Container $container) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Gets a parameter or an object from pimple container. |
||
| 62 | * |
||
| 63 | * @param string $key The unique identifier for the parameter or object |
||
| 64 | * |
||
| 65 | * @return mixed The value of the parameter or an object |
||
| 66 | * |
||
| 67 | * @throws \InvalidArgumentException if the identifier is not defined |
||
| 68 | */ |
||
| 69 | public function __get($key) |
||
| 73 | } |
||
| 74 |