File tree 2 files changed +13
-17
lines changed
2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 5
5
## With Composer
6
6
1 . Using composer, install the package as a ` dev ` dependency:
7
7
``` bash
8
- php composer require --dev " oro/twig-inspector:1.0.x-dev "
8
+ composer require --dev " oro/twig-inspector:~1.1.0 "
9
9
```
10
10
11
- 2 . Enable the bundle in ` AppKernel .php`
11
+ 2 . Enable the bundle in the ` config/bundles .php` file:
12
12
``` php
13
+ # config/bundles.php
13
14
<?php
14
- // src/AppKernel.php
15
15
16
- public function registerBundles()
17
- {
18
- if ('dev' === $this->getEnvironment()) {
19
- //...
20
- $bundles[] = new Oro\TwigInspector\Bundle\OroTwigInspectorBundle();
21
- //...
22
- }
23
- }
16
+ return [
17
+ # ...
18
+ Oro\TwigInspector\Bundle\OroTwigInspectorBundle::class => ['dev' => true]
19
+ ];
24
20
```
25
21
26
- 3 . Add ` twig_inspector ` firewall to` security.yml ` :
22
+ 3 . Add ` twig_inspector ` firewall to the ` security.yaml ` file :
27
23
``` yaml
28
- # app/ config/security.yml
24
+ # config/packages/ security.yaml
29
25
security :
30
26
firewalls :
31
27
twig_inspector :
32
28
pattern : ^/_template/
33
29
security : false
34
30
` ` `
35
- 4. Import the routing to ` routing_dev.yml `:
31
+ 4. Create the ` twig_inspector.yaml` routing file in the `config/routes/dev `:
36
32
` ` ` yaml
37
- # config/routing_dev.yml
33
+ # config/routes/dev/twig_inspector.yaml
38
34
oro_twig_inspector:
39
35
resource: "@OroTwigInspectorBundle/Resources/config/oro/routing.yml"
40
36
` ` `
41
37
42
38
5. (Optional) Update the [framework.ide](https://symfony.com/doc/current/reference/configuration/framework.html#ide) configuration, for example:
43
39
` ` ` yaml
44
- # app/ config/config_dev.yml
40
+ # config/packages/framework.yaml
45
41
framework:
46
42
ide: phpstorm # to open files in a PhpStorm IDE
47
43
` ` `
Original file line number Diff line number Diff line change 27
27
"prefer-stable" : true ,
28
28
"extra" : {
29
29
"branch-alias" : {
30
- "dev-master" : " 1.0 -dev"
30
+ "dev-master" : " 1.1 -dev"
31
31
}
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments