You are here

abstract class Extension in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/DependencyInjection/Extension.php \Symfony\Component\HttpKernel\DependencyInjection\Extension
  2. 8 vendor/symfony/dependency-injection/Extension/Extension.php \Symfony\Component\DependencyInjection\Extension\Extension
  3. 8 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DependencyInjection/Extension.php \Symfony\Component\HttpKernel\DependencyInjection\Extension

Allow adding classes to the class cache.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Extension

2 files declare their use of Extension
ExtensionLoadedExtension.php in vendor/symfony/http-kernel/Tests/Fixtures/ExtensionLoadedBundle/DependencyInjection/ExtensionLoadedExtension.php
ExtensionPresentExtension.php in vendor/symfony/http-kernel/Tests/Fixtures/ExtensionPresentBundle/DependencyInjection/ExtensionPresentExtension.php
5 string references to 'Extension'
Bundle::getContainerExtensionClass in vendor/symfony/http-kernel/Bundle/Bundle.php
Returns the bundle's container extension class.
ConvertImageEffect::buildConfigurationForm in core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php
Form constructor.
Extension::getAlias in vendor/symfony/dependency-injection/Extension/Extension.php
Returns the recommended alias to use in XML.
FileViewsData::getViewsData in core/modules/file/src/FileViewsData.php
Returns views data for the entity type.
image.schema.yml in core/modules/image/config/schema/image.schema.yml
core/modules/image/config/schema/image.schema.yml

File

vendor/symfony/http-kernel/DependencyInjection/Extension.php, line 21

Namespace

Symfony\Component\HttpKernel\DependencyInjection
View source
abstract class Extension extends BaseExtension {
  private $classes = array();

  /**
   * Gets the classes to cache.
   *
   * @return array An array of classes
   */
  public function getClassesToCompile() {
    return $this->classes;
  }

  /**
   * Adds classes to the class cache.
   *
   * @param array $classes An array of classes
   */
  public function addClassesToCompile(array $classes) {
    $this->classes = array_merge($this->classes, $classes);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Extension::$classes private property
Extension::addClassesToCompile public function Adds classes to the class cache.
Extension::getAlias public function Returns the recommended alias to use in XML. Overrides ExtensionInterface::getAlias
Extension::getClassesToCompile public function Gets the classes to cache.
Extension::getConfiguration public function Returns extension configuration. Overrides ConfigurationExtensionInterface::getConfiguration
Extension::getNamespace public function Returns the namespace to be used for this extension (XML namespace). Overrides ExtensionInterface::getNamespace
Extension::getXsdValidationBasePath public function Returns the base path for the XSD files. Overrides ExtensionInterface::getXsdValidationBasePath
Extension::isConfigEnabled protected function
Extension::processConfiguration final protected function
ExtensionInterface::load public function Loads a specific configuration. 4