| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 36 | protected static function domainCore( |
|
| 25 | Core $core, |
||
| 26 | ContainerInterface $container, |
||
| 27 | ?EventDispatcherInterface $dispatcher = null |
||
| 28 | ): InterceptableCore { |
||
| 29 | 36 | $interceptableCore = new InterceptableCore($core, $dispatcher); |
|
| 30 | |||
| 31 | 36 | foreach (static::defineInterceptors() as $interceptor) { |
|
| 32 | 36 | if (!$interceptor instanceof CoreInterceptorInterface) { |
|
| 33 | 36 | $interceptor = $container->get($interceptor); |
|
| 34 | } |
||
| 35 | 36 | $interceptableCore->addInterceptor($interceptor); |
|
| 36 | } |
||
| 37 | |||
| 38 | 36 | return $interceptableCore; |
|
| 39 | } |
||
| 49 |