Documentation

InitRuntimeInterface

Enables usage of the deprecated Twig\Extension\AbstractExtension::initRuntime() method.

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

Tags
author

Fabien Potencier fabien@symfony.com

deprecated

since Twig 2.7, to be removed in 3.0

Table of Contents

initRuntime()  : mixed
Initializes the runtime environment.

Methods

initRuntime()

Initializes the runtime environment.

public initRuntime(Environment $environment) : mixed

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

Parameters
$environment : Environment
Return values
mixed

Search results