| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 25% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | class HelloServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface |
||
| 17 | { |
||
| 18 | use RepositoriesTrait; |
||
| 19 | use AuthorizationServerTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | */ |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | $this->registerRepositories(); |
||
| 27 | $this->registerAuthorizationServer(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function provides() |
||
| 34 | { |
||
| 35 | $return = ['hello.server', AuthorizationServer::class]; |
||
| 36 | |||
| 37 | $return = $this->appendRepositoriesToProvide($return); |
||
| 38 | $return = $this->appendCryptKeysToProvide($return); |
||
| 39 | return $return; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | 1 | public function boot() |
|
| 49 | 1 | } |
|
| 50 | } |
||
| 51 |