Skip to content

Commit ada6c9d

Browse files
authored
Update README.md
1 parent b8f75a7 commit ada6c9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ $loader = new Psr4ClassLoader();
195195
$loader->addPrefix('Ajax\\', __DIR__.'/lib/phpmv/php-mv-ui/Ajax');
196196
$loader->register();
197197
```
198-
####Library loading
198+
####Injection of the service
199199
Create 2 services in the **app/config/services.yml** file :
200200
* The first for the JsUtils instance
201201
* The second for the controller
@@ -213,7 +213,6 @@ services:
213213
class: AppBundle\Controller\DefaultController
214214
arguments: ['@service_container','@jquery']
215215
```
216-
####Injection of the service
217216
It is then possible to inject the Symfony container and the JsUtils service in the controller constructor :
218217
219218
```php

0 commit comments

Comments
 (0)