Skip to content

Commit

Permalink
Set logger on renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Apr 15, 2023
1 parent 46b31f1 commit 9119b8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer-unused.php
Expand Up @@ -7,6 +7,7 @@

return static function (Configuration $config): Configuration {
return $config
->addNamedFilter(NamedFilter::fromString('symfony/monolog-bundle')) // This bundle defines the 'logger' service
->addNamedFilter(NamedFilter::fromString('symfony/twig-bundle')) // This bundle defines the 'twig' service
;
;
};
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -16,6 +16,7 @@
"symfony/dependency-injection": "^5.4 || ^6.0",
"symfony/http-foundation": "^5.4 || ^6.0",
"symfony/http-kernel": "^5.4 || ^6.0",
"symfony/monolog-bundle": "^3.8",
"symfony/string": "^5.4 || ^6.0",
"symfony/twig-bundle": "^5.4 || ^6.0",
"twig/twig": "^2.15 || ^3.5"
Expand Down
6 changes: 5 additions & 1 deletion src/Resources/config/services/renderer.xml
Expand Up @@ -5,6 +5,10 @@
<services>
<service id="Setono\EditorJS\Renderer\RendererInterface" alias="setono_editorjs.renderer"/>

<service id="setono_editorjs.renderer" class="Setono\EditorJS\Renderer\Renderer"/>
<service id="setono_editorjs.renderer" class="Setono\EditorJS\Renderer\Renderer">
<call method="setLogger">
<argument type="service" id="logger"/>
</call>
</service>
</services>
</container>

0 comments on commit 9119b8a

Please sign in to comment.