core23 / twig-formatter-bundle
This bundle provides a twig formatter for the Sonata FormatterBundle.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^7.2
- sonata-project/formatter-bundle: ^4.0
- symfony/config: ^4.2
- symfony/dependency-injection: ^4.2
- symfony/expression-language: ^4.2
- symfony/framework-bundle: ^4.2
- symfony/http-foundation: ^4.2
- symfony/http-kernel: ^4.2
- twig/twig: ^2.4
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.3
- ergebnis/composer-normalize: ^2.0.1
- sonata-project/block-bundle: ^3.18
- symfony/browser-kit: ^4.4
This package is auto-updated.
Last update: 2020-06-23 15:37:41 UTC
README
This bundle provides a twig formatter for the Sonata FormatterBundle.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require core23/twig-formatter-bundle
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php
file of your project:
// config/bundles.php return [ // ... Core23\TwigFormatterBundle\Core23TwigFormatterBundle::class => ['all' => true], ];
To use the new formatter, register the formatter in config/packages/sonata_formatter.yaml
file of your project:
sonata_formatter: formatters: twig: service: core23_twig_formatter.formatter