Skip to content

Commit 2776297

Browse files
authored
Merge pull request #76 from Troopers/add/twig-dependency
add missing twig dependency
2 parents a127b63 + 9747e76 commit 2776297

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Resources/doc/installation.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ First, require it thanks to composer:
55

66
composer.phar require troopers/alertify-bundle:~3.0
77

8-
Add it in your AppKernel.php:
8+
Add it in your AppKernel.php (pass to next step with Flex 💪):
99

1010
```php
1111
public function registerBundles() {
1212
$bundles = [
1313
//...
1414
new Troopers\AlertifyBundle\TroopersAlertifyBundle(),
1515
```
16+
17+
Warning: make sure the twig engine is turned on in framework.yaml
18+
19+
- If not, add the following to `config/packages/framework.yaml` (or `config/config.yml` for symfony <4 versions):
20+
21+
framework:
22+
# ...
23+
templating:
24+
engines: ['twig']

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
}
1919
],
2020
"require": {
21-
"friendsofsymfony/jsrouting-bundle": "^1.0|^2.0"
21+
"friendsofsymfony/jsrouting-bundle": "^1.0|^2.0",
22+
"symfony/templating": "2.*|3.*|4.*"
2223
},
2324
"require-dev": {
2425
"symfony/class-loader": "~2.1",

0 commit comments

Comments
 (0)