Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ae7818a

Browse files
author
Sam Partington
authored
Merge pull request #91 from whiteoctober/templating
Ensure templating component is installed and configured
2 parents 640df8f + 05c6d1c commit ae7818a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ Installation
3535
white_october_breadcrumbs: ~
3636
```
3737

38-
That's it for basic configuration. For more options check the [Configuration](#configuration) section.
38+
4. Configure templating for your application if you haven't already. For example:
39+
40+
```yaml
41+
# app/config/config.yml (Symfony <=3)
42+
# config/packages/framework.yaml (Symfony 4)
43+
templating:
44+
engines: ['twig']
45+
```
46+
47+
That's it for basic configuration. For more options check the [Configuration](#configuration) section.
3948

4049
Usage
4150
=====

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
],
1414
"require": {
1515
"php": ">=5.3.2",
16-
"symfony/framework-bundle": "~2.0|~3.0|^4.0"
16+
"symfony/framework-bundle": "~2.0|~3.0|^4.0",
17+
"symfony/templating": "^3.4|^4.0"
1718
},
1819
"require-dev": {
1920
"phpunit/phpunit": "^6.4",
20-
"symfony/templating": "^3.4|^4.0",
2121
"symfony/browser-kit": "~2.7|~3.0|^4.0"
2222
},
2323
"autoload": {

0 commit comments

Comments
 (0)