| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : ParseContentExecutor |
||
| 19 | { |
||
| 20 | $parseContentExecutor = new ParseContentExecutor( |
||
| 21 | $container->get(ContentParser::class) |
||
| 22 | ); |
||
| 23 | $config = $container->get('config'); |
||
| 24 | foreach ($config['markdown_cms']['options']['parse_content_executor']['observers'] as $observer) { |
||
| 25 | $parseContentExecutor->addObserver($container->get($observer)); |
||
| 26 | } |
||
| 27 | return $parseContentExecutor; |
||
| 28 | } |
||
| 29 | } |