phps-cans/universal-module.twig

Cross-framework module for twig.

v1.0.0 2017-01-19 16:40 UTC

This package is not auto-updated.

Last update: 2024-04-22 13:03:12 UTC


README

This package integrates twig/twig in any container-interop compatible framework/container.

Installation

composer require phps-cans/universal-module.twig

Once installed, you need to register the PSCS\Universal\Module\TwigServiceProvider into your container.

If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.

Introduction

This service provider is meant to create a Symfony\Component\Console\Application.

Provided services

This service provider provides the following services:

Service name Description
ViewsDirectory The path to your views
\Twig_Loader_Filesystem::class Twig Filsesystem loader
Twig_Environment::class Twig environment using Filesystem loader

Project template courtesy of thecodingmachine/service-provider-template