* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * Remove private aliases from the container. They were only used to establish * dependencies between services, and these dependencies have been resolved in * one of the previous passes. * * @author Johannes M. Schmitt */ class RemovePrivateAliasesPass implements CompilerPassInterface { /** * Removes private aliases from the ContainerBuilder. */ public function process(ContainerBuilder $container) { foreach ($container->getAliases() as $id => $alias) { if ($alias->isPublic() || $alias->isPrivate()) { continue; } $container->removeAlias($id); $container->log($this, sprintf('Removed service "%s"; reason: private alias.', $id)); } } } __halt_compiler();----SIGNATURE:----bBCDLJ5UmyBDM/ehwQN2l2HjYac/9zQlL/4ec0bUDnLFNyBYyUnz2LBI/m5NkKdOwm4e26A4HwsqSc0DFgicm/rXsqKO88SCmhkEVpFXWsjD2AJbKYKnR6udl0NILShsRUwcjsZoHGtD7MVhIh2BnWWyEdzepVr2yeuXFsnP3MF7UMHjpbMseQCR5v3XapsLLzuZQ9Hd5m6knaWcCmYodiD+RksCMq98lvXoBHcxCREQz0Qe7Z1BdIJ9WuaQziIYm1cTyB56pXQVVpptPeDoufKELBRdSbO3UqPXz8j//i/fDAYo3W4J6r2R87t7vCda4al38Puov1p6A+leWllXz0CMylOspoGM2oXho72wfumsZLFX6jd5dycehF16K3z05C4x/du/uKzbq6AzgmE1p3mizYOVg7xHTI45j5LWpubNLWZB4/AtKPqemBx9oZpWVtvsyHGggikjVTWQ0EGqkkCkEAKqwv4mQZgns35jJ2rB9s9hECQyWbnD2Ivg2BLTWY4hHg7yThdCqsAG/F8q7C5EDDwQxboEHjasNf/RshmV9F+4RvqBJe/Ho75GgzAfRQrw33jamzFJUjLW5xVhzYLiZcsAMKCHu9zlwl3ilZAHe3l9YViRV4qgFl5n7ch+Kp2vWWIYKOTXmx74tvhR3M3oJtiF+F2GaitCxo7Jz7E=----ATTACHMENT:----NzIxMDgyMjA3NzgzOTg0MSA2MDQyNTgyNzM3MDI4NjIzIDQ0NTQ3MDczMDA3MTIxNDY=