You are here

public function Twig_ExtensionInterface::initRuntime in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/ExtensionInterface.php \Twig_ExtensionInterface::initRuntime()

Initializes the runtime environment.

This is where you can load some file that contains filter functions for instance.

Parameters

Twig_Environment $environment The current Twig_Environment instance:

1 method overrides Twig_ExtensionInterface::initRuntime()
Twig_Extension::initRuntime in vendor/Twig/Extension.php
Initializes the runtime environment.

File

vendor/Twig/ExtensionInterface.php, line 26

Class

Twig_ExtensionInterface
Interface implemented by extension classes.

Code

public function initRuntime(Twig_Environment $environment);