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