Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 4 | ||
Bugs | 0 | Features | 3 |
1 | <?php |
||
10 | 10 | function __construct($root) |
|
|
|||
11 | { |
||
12 | 10 | $container = $this->container = new Container; |
|
13 | |||
14 | 10 | $container->share(Container::class, $container); |
|
15 | 10 | $container->share(Application::class, $this); |
|
16 | 10 | $container->share(Filesystem::class, new Filesystem($this, $root)); |
|
17 | 10 | $container->share(Framework::class, new Framework($this)); |
|
18 | |||
19 | 10 | $container->addServiceProvider(Providers\Core::class); |
|
20 | 10 | $container->addServiceProvider(Providers\Logging::class); |
|
21 | 10 | $container->addServiceProvider(Providers\Tarantool::class); |
|
22 | |||
23 | 10 | $container->delegate(new ReflectionContainer()); |
|
24 | 10 | } |
|
25 | |||
35 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.