File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/symfony/http-kernel/DependencyInjection
Upload
[..]
MergeExtensionConfigurationPass.php (1.1 KB)
Edit
Rename
Del
RegisterControllerArgumentLocatorsPass.php (11.85 KB)
Edit
Rename
Del
RegisterLocaleAwareServicesPass.php (1.36 KB)
Edit
Rename
Del
ServicesResetter.php (1.71 KB)
Edit
Rename
Del
ServicesResetterInterface.php (446 B)
Edit
Rename
Del
registrarinfo.php (0 B)
Edit
Rename
Del
Edit: RegisterLocaleAwareServicesPass.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\DependencyInjection; use Symfony\Component\DependencyInjection\Argument\IteratorArgument; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; /** * Register all services that have the "kernel.locale_aware" tag into the listener. * * @author Pierre Bobiet <pierrebobiet@gmail.com> */ class RegisterLocaleAwareServicesPass implements CompilerPassInterface { public function process(ContainerBuilder $container): void { if (!$container->hasDefinition('locale_aware_listener')) { return; } $services = []; foreach ($container->findTaggedServiceIds('kernel.locale_aware') as $id => $tags) { $services[] = new Reference($id); } if (!$services) { $container->removeDefinition('locale_aware_listener'); return; } $container ->getDefinition('locale_aware_listener') ->setArgument(0, new IteratorArgument($services)) ; } }
Simpan