Skip to content
Snippets Groups Projects
Commit 0f5fe1af authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Use requested name in MarkdownFactory. (#1569)

This allows the factory to create also subclasses of the Markdown class.
parent ca3fa4fd
No related merge requests found
...@@ -57,6 +57,6 @@ class MarkdownFactory implements FactoryInterface ...@@ -57,6 +57,6 @@ class MarkdownFactory implements FactoryInterface
ContainerInterface $container, $requestedName, array $options = null ContainerInterface $container, $requestedName, array $options = null
) { ) {
$markdownService = $container->get('League\CommonMark\ConverterInterface'); $markdownService = $container->get('League\CommonMark\ConverterInterface');
return new Markdown($markdownService); return new $requestedName($markdownService);
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment