Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BundleInterface.php

interface BundleInterface

BundleInterface.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\HttpKernel\Bundle\BundleInterface

Expanded class hierarchy of BundleInterface

All classes that implement BundleInterface

2 files declare their use of BundleInterface
Kernel.php in vendor/symfony/http-kernel/Kernel.php
KernelInterface.php in vendor/symfony/http-kernel/KernelInterface.php

File

vendor/symfony/http-kernel/Bundle/BundleInterface.php, line 23

Namespace

Symfony\Component\HttpKernel\Bundle
View source
interface BundleInterface {
    
    /**
     * Boots the Bundle.
     *
     * @return void
     */
    public function boot();
    
    /**
     * Shutdowns the Bundle.
     *
     * @return void
     */
    public function shutdown();
    
    /**
     * Builds the bundle.
     *
     * It is only ever called once when the cache is empty.
     *
     * @return void
     */
    public function build(ContainerBuilder $container);
    
    /**
     * 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 namespace.
     */
    public function getNamespace() : 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;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
BundleInterface::boot public function Boots the Bundle. 1
BundleInterface::build public function Builds the bundle. 1
BundleInterface::getContainerExtension public function Returns the container extension that should be implicitly loaded. 1
BundleInterface::getName public function Returns the bundle name (the class short name). 1
BundleInterface::getNamespace public function Gets the Bundle namespace. 1
BundleInterface::getPath public function Gets the Bundle directory path. 1
BundleInterface::setContainer public function 1
BundleInterface::shutdown public function Shutdowns the Bundle. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal