| 1 | <?php |
||
| 21 | class ConfigServiceProvider implements ServiceProviderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Configuration instance |
||
| 25 | * |
||
| 26 | * @var Registry |
||
| 27 | * @since 1.0 |
||
| 28 | */ |
||
| 29 | private $config; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | * |
||
| 34 | * @param string $file Path to the config file. |
||
| 35 | * |
||
| 36 | * @since 1.0 |
||
| 37 | * @throws \RuntimeException |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(string $file) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Registers the service provider with a DI container. |
||
| 52 | * |
||
| 53 | * @param Container $container The DI container. |
||
| 54 | * |
||
| 55 | * @return void |
||
| 56 | * |
||
| 57 | * @since 1.0 |
||
| 58 | */ |
||
| 59 | 1 | public function register(Container $container) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Get the `config` service |
||
| 66 | * |
||
| 67 | * @param Container $container The DI container. |
||
| 68 | * |
||
| 69 | * @return Registry |
||
| 70 | * |
||
| 71 | * @since 1.0 |
||
| 72 | */ |
||
| 73 | 1 | public function getConfigService(Container $container) : Registry |
|
| 77 | } |
||
| 78 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.