/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/HttpKernel/Tests/Fixtures/BundleCompilerPass/BundleAsCompilerPassBundle.php
25 строк
757 B
Yonel Ceruto
[HttpKernel] Add support for bundles as compiler passes
17 дек 2025, 14:27
17 дек 2025, 14:27
b029905
Код
Авторство
О чём код?
<?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\Tests\Fixtures\BundleCompilerPass; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\AbstractBundle; class BundleAsCompilerPassBundle extends AbstractBundle implements CompilerPassInterface { public function process(ContainerBuilder $container): void { $container->register('foo', \stdClass::class) ->setPublic(true); } }