enabling packagist
This commit is contained in:
parent
93747fd110
commit
029934e715
|
@ -9,7 +9,7 @@ PHP 7.0
|
||||||
|
|
||||||
### Install
|
### Install
|
||||||
|
|
||||||
The package can be installed using [ Composer ](https://getcomposer.org/). (not yet)
|
The package can be installed using [ Composer ](https://getcomposer.org/).
|
||||||
```
|
```
|
||||||
composer require meta-tech/silex-controller-service
|
composer require meta-tech/silex-controller-service
|
||||||
```
|
```
|
||||||
|
@ -18,7 +18,7 @@ Or add the package to your `composer.json`.
|
||||||
|
|
||||||
```
|
```
|
||||||
"require": {
|
"require": {
|
||||||
"meta-tech/silex-controller-service" : "1.0"
|
"meta-tech/silex-controller-service" : "@dev"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ $app->register(new ControllerServiceProvider(Test::class, [$app], '/test', 'ctrl
|
||||||
*first parameter* is your **controller class**
|
*first parameter* is your **controller class**
|
||||||
*second parameter* is an array of your **controller depencies** (default [])
|
*second parameter* is an array of your **controller depencies** (default [])
|
||||||
*third parameter* define your controller **routing entry point** (default null : disabling mounting controller's routes)
|
*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.')
|
*fourth 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`
|
The name of the registering service is the `given namespace` followed by your `controller class shortname`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user