* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; abstract class AbstractServiceConfigurator extends AbstractConfigurator { protected $parent; protected $id; private $defaultTags = array(); public function __construct(ServicesConfigurator $parent, Definition $definition, $id = null, array $defaultTags = array()) { $this->parent = $parent; $this->definition = $definition; $this->id = $id; $this->defaultTags = $defaultTags; } public function __destruct() { // default tags should be added last foreach ($this->defaultTags as $name => $attributes) { foreach ($attributes as $attributes) { $this->definition->addTag($name, $attributes); } } $this->defaultTags = array(); } /** * Registers a service. * * @param string $id * @param string|null $class * * @return ServiceConfigurator */ final public function set($id, $class = null) { $this->__destruct(); return $this->parent->set($id, $class); } /** * Creates an alias. * * @param string $id * @param string $referencedId * * @return AliasConfigurator */ final public function alias($id, $referencedId) { $this->__destruct(); return $this->parent->alias($id, $referencedId); } /** * Registers a PSR-4 namespace using a glob pattern. * * @param string $namespace * @param string $resource * * @return PrototypeConfigurator */ final public function load($namespace, $resource) { $this->__destruct(); return $this->parent->load($namespace, $resource); } /** * Gets an already defined service definition. * * @param string $id * * @return ServiceConfigurator * * @throws ServiceNotFoundException if the service definition does not exist */ final public function get($id) { $this->__destruct(); return $this->parent->get($id); } /** * Registers a service. * * @param string $id * @param string|null $class * * @return ServiceConfigurator */ final public function __invoke($id, $class = null) { $this->__destruct(); return $this->parent->set($id, $class); } } __halt_compiler();----SIGNATURE:----rt+aqbPiFHiOlFnS9T+ZfEmB+wYUZ7DpST36a2TgnB/bDkh+4gc5avG9GaSjYYX8xIBbCSyw48pZPEWAwtWevb05d5i/7u6B92V55Uc3jTn2BQ7SM1yVFEYpwBRQH8yd+W805+Lo2SPdbJY8Pt+VaUSPVNMM9xyojcNFNgLBQ+XQBWt+EBLnvnAmT05bZKEyljf2QjcCpvgNobU3gNrDs7gKVg5+GLkfa04o34Fdby/HtO2mRCz42Cz85tkQUrRyxODuASNBLqAUkL3+Mp2yNJJpA3zGLptI8SdBIG5QLxjXl5QjqMQgOv683SIpSv6sgakcjsu8zty40uvn0txghn/HvHyvxvS5SDv7lNyU7ykyyXu7b5TC/QuFywngR7ge3XIlZMy8UvspzQu0H6SYPjq396biW7CkOO8qnOeGaGizDggMQ3tSoRUxTpydfq0lQqugMD0eR2ejtYShNoftIlV4x1hxVapbqXHD4tvfJPM9+moDVvIxWG/zYBLVTA2vE3Z67kqNlPeCEU9conu94P4/CX2bFaMzMoZ0AUZl0BcDJePnOsfAoDWVNu6QX3yqWArqJePGx0Wkmhv7yEUnDwgYJuUEPNNqdpj/jLdRWXjM38MFIhQ73ox0toT767s0e+x70Qs7vjaoec5IYOOj3mGpCdTT7carVYr1yW7O3no=----ATTACHMENT:----NzUxNTg5MTc3NDk3MTg4MyAxNjA1NjY3Nzc2ODM2NzAyIDI0MTUzOTcxMjI3Mzk0Mjk=