\Twig\ExtensionInitRuntimeInterface

Enables usage of the deprecated Twig_Extension::initRuntime() method.

Explicitly implement this interface if you really need to implement the deprecated initRuntime() method in your extensions.

Summary

Methods
Constants
initRuntime()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

initRuntime()

initRuntime(\Twig_Environment  $environment) 

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