| 1 | <?php |
||
| 19 | class ConfigServiceProvider implements ServiceProviderInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Configuration instance |
||
| 23 | * |
||
| 24 | * @var Registry |
||
| 25 | */ |
||
| 26 | private $config; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor. |
||
| 30 | * |
||
| 31 | * @param string $file Path to the config file. |
||
| 32 | * |
||
| 33 | * @throws \RuntimeException |
||
| 34 | */ |
||
| 35 | 2 | public function __construct(string $file) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Registers the service provider with a DI container. |
||
| 48 | * |
||
| 49 | * @param Container $container The DI container. |
||
| 50 | * |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | 1 | public function register(Container $container) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Get the `config` service |
||
| 60 | * |
||
| 61 | * @param Container $container The DI container. |
||
| 62 | * |
||
| 63 | * @return Registry |
||
| 64 | */ |
||
| 65 | 1 | public function getConfigService(Container $container) : Registry |
|
| 69 | } |
||
| 70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.