Skip to content

Commit

Permalink
Add support for Symfony 4 (#8)
Browse files Browse the repository at this point in the history
* Test with Symfony 4

* Fix installation instructions
  • Loading branch information
ajgarlag authored Nov 12, 2018
1 parent 28ea57a commit abbacf9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ Symfony Bundle
--------------

If you want to use this extension in your Symfony application, you can enable the
Symfony Bundle included in this package:
Symfony Bundle included in this package.

The bundle will register the twig extension automatically. So, once enabled, you
can insert the `breakpoint` twig function in your templates.

### Symfony 2/3

```php
// app/AppKernel.php
Expand All @@ -82,9 +87,16 @@ if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
}
```

This bundle will register the twig extension automatically. So, once enabled, you
can insert the `breakpoint` twig function in your templates.
### Symfony 4

```php
// config/bundles.php
//...
return [
//...
Ajgl\Twig\Extension\SymfonyBundle\AjglBreakpointTwigExtensionBundle::class => ['dev' => true]
];
```

License
-------
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"twig/twig": "^1.14|^2.0"
},
"require-dev": {
"symfony/framework-bundle": "^2.7|^3.2",
"symfony/twig-bundle": "^2.7|^3.2",
"symfony/framework-bundle": "^2.7|^3.2|^4.1",
"symfony/twig-bundle": "^2.7|^3.2|^4.1",
"phpunit/phpunit": "^5"
},
"suggest": {
Expand Down

0 comments on commit abbacf9

Please sign in to comment.