/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/DependencyInjection/Kernel/BundleInterface.php
58 строк
1 KB
Nicolas Grekas
[HttpKernel] Move getNamespace() from DI to HttpKernel
03 апр 2026, 16:53
03 апр 2026, 16:53
d414765
Код
Авторство
О чём код?
<?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\DependencyInjection\Kernel; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ interface BundleInterface { /** * Boots the Bundle. */ public function boot(): void; /** * Shutdowns the Bundle. */ public function shutdown(): void; /** * Builds the bundle. * * It is only ever called once when the cache is empty. */ public function build(ContainerBuilder $container): void; /** * Returns the container extension that should be implicitly loaded. */ public function getContainerExtension(): ?ExtensionInterface; /** * Returns the bundle name (the class short name). */ public function getName(): string; /** * Gets the Bundle directory path. * * The path should always be returned as a Unix path (with /). */ public function getPath(): string; public function setContainer(?ContainerInterface $container): void; }