glaubinix / silex-twig-engine
This package is abandoned and no longer maintained.
No replacement package was suggested.
TwigEngine service provider for silex
2.1
2018-01-07 14:10 UTC
Requires
- silex/silex: ~2.0
- symfony/templating: ^2.3|^3.0|^4.0
- symfony/twig-bridge: ^2.3|^3.0|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.9
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2022-05-02 14:17:22 UTC
README
There are a couple of symfony components out there which depend on the EngineInterface rather then depending on a specific template engine. This allows users with a different template engine to use the features too -> YaY
Installation
The easiest way to install this library is to use Composer. Add the package "glaubinix/silex-twig-engine" to your composer.json.
{ "require": { "glaubinix/silex-twig-engine": "@stable" } }
Usage
// Register the twig service provider $app->register(new \Silex\Provider\TwigServiceProvider(), [ // your twig config ] ); // Register the twig service provider $app->register(new \Glaubinix\TwigEngine\TwigEngineServiceProvider()); // The engine is now available under the same identifier as in symfony $app['templating']->render('template', []);
License
MIT