*/ 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:----uUL/91fTnAlzW5hyLTd4K99/cG6carBGoi4vTmDoSBFHwCumNn95BH9RgvBF8fagVjNGd90bFrhk5xUa7qO3ccs5RSlV9pOmsM/9n9VMDX0/0VBVa0zzHHZvdFwGrQsYaeY5X2u1B1WULddvT7oXeEYJc4VaGQV5d9YoTImibPUqpNYwTV5XmMuc913X7mla2SXpSGXo23jdsnN2UOA+WHMZQMvhw+uhTxbWc5MXpSiRRqhzmapBI8/7KJOJdj3Lh7UPP0euWwxNRG1g67Yuryh27Q0yHJj3OmuVpOrnIv4ie6SmQL75Q3EDQBnq6SURxnDlkcUxz0Km6inFjQipKFP0eq1vi95JwH1ql8+E6E4qQNMmOJ7J70gxJSvGh+3kXymEly2i0yFhnhv3iPvXhc2NraKa+UWH3W9oMSvZ1gdZ1Ma1RvkDrwmoVt9d4GVwZh9KCxTtvhdIKbDqEmXSrJPLWbZph2wAxlMvjSOiOO8gXHAFSJtyt/SUxSBq2DxT/oR+bEqGXR5vM4bYWBvwYLXZXwBhI0+pwsSQB7K+Vyw0EsNIvql9cTyJ3FN1R+LUUN9Gs4LpG2wBUejk9wmjBuFr4wb1LD6LtEnBFcLWRzshAmOyB92ISiL8SNYNp2sp1u+Nyb6Jx1ijangZiV8qoqXKm2ZTsZo09gNGul0LZF4=----ATTACHMENT:----MzUyMjc1NzcxNjYxMDcwMCA0NDUzMTI0ODg5MzA4NTM2IDE1NjUxODM2MjMwMTQ0MDI=