| Total Complexity | 4 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class BootstrapProvider implements ProviderInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Full path for the configuration directory. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $config; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * An array of loaded providers. |
||
| 26 | * |
||
| 27 | * @var string[] |
||
| 28 | */ |
||
| 29 | protected $providers = array(); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Initializes the provider instance. |
||
| 33 | * |
||
| 34 | * @param string $root |
||
| 35 | * @param string $config |
||
| 36 | */ |
||
| 37 | 9 | public function __construct($root, $config = 'app/config') |
|
| 44 | 9 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Registers the bindings in the container. |
||
| 48 | * |
||
| 49 | * @param \Zapheus\Container\WritableInterface $container |
||
| 50 | * @return \Zapheus\Container\ContainerInterface |
||
| 51 | */ |
||
| 52 | 9 | public function register(WritableInterface $container) |
|
| 73 |