* * 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:----P7El8Jkr2wOsv5sSoVrEiaZjQMQ3byas6wC0jMDXGWlEFlYoXZbSzurZ9tugD3QuH/2b2Jwbs82tApTlrfJLFX/hEgpulIOPWqo+VRDsK3hVrdKOmXjbEkYELnMGUA9kjR9DuHiEdEqdr1g9Oji3e7zbSNQpMJ7Z9qZPDKtiU/Es+1XcNqBhYwiiqWrpxCSrI9XRSn62f1kn+E5kmfnTiawzFGlWOEyqrg+50JnbgqHNVyy2+PWyzepvBpBY06/ktrvMH2MdnqeRw3QH1tN1lXIADvnLqWkrMmzLr8/t5F/0MtvcEvVLrNIAesaCIjL44+sp8H9XxAP9CF2PcHsFT1oI6d+4PUKmNbJ5U0gXghCAOUZNocBFpX0bj2VuDVLq3lpDyTiWkTuJthXwGCQ8H52uGM73dcBTJ5HG2EsEzHQVOIa+GuO7XI2P7jlL96Lrlux9+u4iTkdLHwTwLKL5Vvl1dGv9s9CpUe9wtUK7/vkZUl0Xv4ahbEQAtmsfyoGCYKuFCURmgYCfY+QopYZ2j+Xsh7sny9r7awJF81gaJ5H8gsdyAMSh7sOjvN+mcUANCBgt2VGnB1p7eUFM5vLocPy6bnUTVwnf5i6SVX0VqEr3Xtb/yNxobtsVjR85lR0YAYgdx7VnSljMznFCD4MRIElueW+RIWIbcRB+fq4KyTk=----ATTACHMENT:----MjgwMDI3MjkwMTgzOTA2NCA1OTIxNTc5MDMzMzEzMjcxIDIxNDU0MTE0MzA3MDU3ODM=