abstract class Extension in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-kernel/DependencyInjection/Extension.php \Symfony\Component\HttpKernel\DependencyInjection\Extension
- 8 vendor/symfony/dependency-injection/Extension/Extension.php \Symfony\Component\DependencyInjection\Extension\Extension
- 8 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension
Same name and namespace in other branches
- 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
- class \Symfony\Component\DependencyInjection\Extension\Extension implements ConfigurationExtensionInterface, ExtensionInterface
- class \Symfony\Component\HttpKernel\DependencyInjection\Extension
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\DependencyInjectionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Extension:: |
private | property | ||
Extension:: |
public | function | Adds classes to the class cache. | |
Extension:: |
public | function |
Returns the recommended alias to use in XML. Overrides ExtensionInterface:: |
|
Extension:: |
public | function | Gets the classes to cache. | |
Extension:: |
public | function |
Returns extension configuration. Overrides ConfigurationExtensionInterface:: |
|
Extension:: |
public | function |
Returns the namespace to be used for this extension (XML namespace). Overrides ExtensionInterface:: |
|
Extension:: |
public | function |
Returns the base path for the XSD files. Overrides ExtensionInterface:: |
|
Extension:: |
protected | function | ||
Extension:: |
final protected | function | ||
ExtensionInterface:: |
public | function | Loads a specific configuration. | 4 |