| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function register(Container $app) |
||
| 14 | { |
||
| 15 | 1111 | $app['eccube.di'] = function (Container $app) { |
|
| 16 | 1111 | $di = new DependencyBuilder( |
|
| 17 | 1111 | $app['eccube.di.generator.dir'], |
|
| 18 | 1111 | $app['eccube.di.generator.class'], |
|
| 19 | 1111 | $app['eccube.di.wirings'], |
|
| 20 | 1111 | $app['eccube.di.annotation_reader'], |
|
| 21 | 1111 | $app['eccube.di.debug'] |
|
| 22 | ); |
||
| 23 | |||
| 24 | 1111 | return $di; |
|
| 25 | }; |
||
| 26 | |||
| 27 | 1111 | $app['eccube.di.debug'] = $app['debug']; |
|
| 28 | 1111 | $app['eccube.di.annotation_reader'] = isset($app['annotations']) ? $app['annotations'] : new AnnotationReader(); |
|
| 29 | |||
| 30 | 1111 | $app['eccube.di.generator.dir'] = null; |
|
| 31 | 1111 | $app['eccube.di.generator.class'] = 'ServiceProviderCache'; |
|
| 32 | } |
||
| 33 | |||
| 39 |