You are here

public function Twig_ExtensionInterface::initRuntime in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/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:

Deprecated

since 1.23 (to be removed in 2.0), implement Twig_Extension_InitRuntimeInterace instead

1 method overrides Twig_ExtensionInterface::initRuntime()
Twig_Extension::initRuntime in vendor/twig/twig/lib/Twig/Extension.php

File

vendor/twig/twig/lib/Twig/ExtensionInterface.php, line 28

Class

Twig_ExtensionInterface
Interface implemented by extension classes.

Code

public function initRuntime(Twig_Environment $environment);