Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 503 Bytes

installation.rst

File metadata and controls

22 lines (14 loc) · 503 Bytes

single: Installation

Installation

The easiest way to install twig-extensions is to require it with Composer:

composer require sonata-project/twig-extensions

Alternatively, you could add a dependency into your composer.json file directly.

Now, enable the bundle in bundles.php file:

// config/bundles.php

return [
    // ...
    Sonata\Twig\Bridge\Symfony\Bundle\SonataTwigBundle::class => ['all' => true],
];