@@ -28,8 +28,8 @@ |
||
| 28 | 28 | ): InterceptableCore { |
| 29 | 29 | $interceptableCore = new InterceptableCore($core, $dispatcher); |
| 30 | 30 | |
| 31 | - foreach (static::defineInterceptors() as $interceptor) { |
|
| 32 | - if (!$interceptor instanceof CoreInterceptorInterface) { |
|
| 31 | + foreach (static::defineInterceptors() as $interceptor){ |
|
| 32 | + if (!$interceptor instanceof CoreInterceptorInterface){ |
|
| 33 | 33 | $interceptor = $container->get($interceptor); |
| 34 | 34 | } |
| 35 | 35 | $interceptableCore->addInterceptor($interceptor); |
@@ -28,8 +28,10 @@ |
||
| 28 | 28 | ): InterceptableCore { |
| 29 | 29 | $interceptableCore = new InterceptableCore($core, $dispatcher); |
| 30 | 30 | |
| 31 | - foreach (static::defineInterceptors() as $interceptor) { |
|
| 32 | - if (!$interceptor instanceof CoreInterceptorInterface) { |
|
| 31 | + foreach (static::defineInterceptors() as $interceptor) |
|
| 32 | + { |
|
| 33 | + if (!$interceptor instanceof CoreInterceptorInterface) |
|
| 34 | + { |
|
| 33 | 35 | $interceptor = $container->get($interceptor); |
| 34 | 36 | } |
| 35 | 37 | $interceptableCore->addInterceptor($interceptor); |