1 | <?php |
||
36 | class ObjectResolver extends ObjectAbstract implements ConfigInterface, ContainerAwareInterface |
||
37 | { |
||
38 | use ContainerAwareTrait; |
||
39 | |||
40 | /** |
||
41 | * @param Container $container |
||
42 | * @access public |
||
43 | */ |
||
44 | public function __construct(Container $container) |
||
48 | |||
49 | /** |
||
50 | * Get '#service_id' from the container |
||
51 | * |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function get(/*# string */ $id, $default = null) |
||
62 | |||
63 | /** |
||
64 | * Has '#service_id' in the container ? |
||
65 | * |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | public function has(/*# string */ $id)/*# : bool */ |
||
75 | |||
76 | /** |
||
77 | * Get container or its delegator |
||
78 | * |
||
79 | * @return ContainerInterface |
||
80 | * @access protected |
||
81 | */ |
||
82 | protected function getRealContainer()/*# : ContainerInterface */ |
||
95 | |||
96 | /** |
||
97 | * Convert '#service_id' to 'service_id' |
||
98 | * |
||
99 | * @param string $serviceId |
||
100 | * @return string |
||
101 | * @access protected |
||
102 | */ |
||
103 | public static function getRawId(/*# string */ $serviceId)/*# : string */ |
||
107 | |||
108 | /** |
||
109 | * Convert 'service_id' to '#service_id' |
||
110 | * |
||
111 | * @param string $rawId |
||
112 | * @return string |
||
113 | * @access public |
||
114 | * @static |
||
115 | */ |
||
116 | public static function getServiceId(/*# string */ $rawId)/*# : string */ |
||
120 | |||
121 | /** |
||
122 | * Is $serviceId something like '#service_id' ? |
||
123 | * |
||
124 | * @param mixed $serviceId |
||
125 | * @return bool |
||
126 | * @access public |
||
127 | * @static |
||
128 | */ |
||
129 | public static function isServiceId($serviceId)/*# : bool */ |
||
139 | } |
||
140 |