*/ class ServiceLocator implements \Psr\Container\ContainerInterface { protected $container; protected $aliases = array(); /** * @param PimpleContainer $container The Container instance used to locate services * @param array $ids Array of service ids that can be located. String keys can be used to define aliases */ public function __construct(\Psr\Container\ContainerInterface $container, array $ids) { $this->container = $container; $this->alias($ids); } public function alias( array $ids){ foreach ($ids as $key => $id) { $this->aliases[\is_int($key) ? $id : $key] = $id; } } /** * {@inheritdoc} */ public function get($id) { if (!isset($this->aliases[$id])) { throw new \Psr\Container\NotFoundExceptionInterface($id); } return $this->container[$this->aliases[$id]]; // $this->container->get($this->aliases[$id]); } /** * {@inheritdoc} */ public function has($id) { return isset($this->aliases[$id]) && $this->container->has($this->aliases[$id]); } }__halt_compiler();----SIGNATURE:----HRadCBFp/XeOnMSlSL8leKslFfhQktVYrsoxPEXHuHM07JfpiUgIDPlAcUPVMHhoT1KMjbbtOQNOwGc6x2/IIS+ABujgNnHVr2BDeardyE98St11GUpE6d1pBKa2VmWSeF3OQHistwnjCCMvmFqJo11y2ks4gCa1rVld5urLg2NruW5COyiIY00vchiB3tgkI1EM3enFeiarR3CcAypnvOV5/d+EwJWYU/Ao+2wy3j8BOgVc4B4GSPQ8Jaa6/BUwLYMhPfl1M6p8g+NdnqSredRh9sYKF1C+4QpEmXH22qHd/i+MWrUsLj/xNM46kbsV5XosqHv7//pSmOL8Bxs8j0tBK1xCofbgnL2zVJ2ts9o3QJNNTGI0qdZV51vB7da5w1PXNGbAlUxxf/nY32/zu8WBudB2WFW5S7ZIrVWyAhIIWq2an511ZzOqpOrRtsCPRq0O4F77ucww59TEhCY9ceYTKA4vJOsWBPxH4XiHBRL7M7/Rv74WrA+rO/EfzJ78k1y5J9bV7i583tgZyHKvJ8uwwAu/lah5O/MmFdDceHvMJOyCY+hL+k36ZZyTPoYHO0hrnhP8clBt12zUCm8j2w7/q8553Ig6SrmnFmHBwOGJq8/+SiQLRPF5N26AWLVElLZdIdAeweSe0T/de/yUm/l7TaipRQegNQNzrMzNr5c=----ATTACHMENT:----NjAxMTkzNTQ1MTI2MjkzOSA1ODg0MTE4MDk0NTEyMjMyIDE3MTE2NTIxMzc0MDg0NTU=