function ExtensionSet::initExtensions
11 calls to ExtensionSet::initExtensions()
- ExtensionSet::getBinaryOperators in vendor/
twig/ twig/ src/ ExtensionSet.php - ExtensionSet::getFilter in vendor/
twig/ twig/ src/ ExtensionSet.php - ExtensionSet::getFilters in vendor/
twig/ twig/ src/ ExtensionSet.php - ExtensionSet::getFunction in vendor/
twig/ twig/ src/ ExtensionSet.php - ExtensionSet::getFunctions in vendor/
twig/ twig/ src/ ExtensionSet.php
File
-
vendor/
twig/ twig/ src/ ExtensionSet.php, line 411
Class
- ExtensionSet
- @author Fabien Potencier <fabien@symfony.com>
Namespace
TwigCode
private function initExtensions() : void {
$this->parsers = [];
$this->filters = [];
$this->functions = [];
$this->tests = [];
$this->dynamicFilters = [];
$this->dynamicFunctions = [];
$this->dynamicTests = [];
$this->visitors = [];
$this->unaryOperators = [];
$this->binaryOperators = [];
foreach ($this->extensions as $extension) {
$this->initExtension($extension);
}
$this->initExtension($this->staging);
// Done at the end only, so that an exception during initialization does not mark the environment as initialized when catching the exception
$this->initialized = true;
}