amend README relative to default route parameter

This commit is contained in:
a-sansara 2017-03-15 00:22:34 +01:00
parent 8b0a574051
commit 93747fd110

View File

@ -55,7 +55,7 @@ $app->register(new ControllerServiceProvider(Test::class, [$app], '/test', 'ctrl
```
*first parameter* is your **controller class**
*second parameter* is an array of your **controller depencies** (default [])
*third parameter* define your controller **routing entry point** (default '/')
*third parameter* define your controller **routing entry point** (default null : disabling mounting controller's routes)
*fouth parameter* define your **service 's namespace** to access your controller (default 'ctrl.')
The name of the registering service is the `given namespace` followed by your `controller class shortname`