use Twig\Profiler\Profile;
use Twig\RuntimeLoader\ContainerRuntimeLoader;
use Twig\Template;
use Twig\TemplateWrapper;
return static function DContainerConfigurator
$container) { $container->
services() ->
set('twig', Environment::
class) ->
args([service('twig.loader'
),
abstract_arg('Twig options'
)]) ->
call('addGlobal',
['app',
service('twig.app_variable'
)]) ->
call('addRuntimeLoader',
[service('twig.runtime_loader'
)]) ->
configurator([service('twig.configurator.environment'
), 'configure'
]) ->
tag('container.preload',
['class' => FilesystemCache::
class]) ->
tag('container.preload',
['class' => CoreExtension::
class]) ->
tag('container.preload',
['class' => EscaperExtension::
class]) ->
tag('container.preload',
['class' => OptimizerExtension::
class]) ->
tag('container.preload',
['class' => StagingExtension::
class]) ->
tag('container.preload',
['class' => ExtensionSet::
class]) ->
tag('container.preload',
['class' => Template::
class]) ->
tag('container.preload',
['class' => TemplateWrapper::
class]) ->
alias('Twig_Environment', 'twig'
) ->
deprecate('symfony/twig-bundle', '6.3', 'The "%alias_id%" service alias is deprecated, use "'.Environment::
class.'" or "twig" instead.'
)