Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Use sonata.templating service from SonataBlockBundle (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
covex-nn authored and dbu committed Apr 23, 2018
1 parent 952b171 commit 2a7d6a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"symfony/framework-bundle": "^2.8 || ^3.3 || ^4.0",
"doctrine/phpcr-bundle": "^1.4|^2.0",
"doctrine/phpcr-odm": "^1.4.2|^2.0",
"sonata-project/block-bundle": "^3.3",
"sonata-project/block-bundle": "^3.11",
"symfony-cmf/core-bundle": "^2.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<service id="cmf.block.menu" class="Symfony\Cmf\Bundle\BlockBundle\Block\MenuBlockService">
<tag name="sonata.block" />
<argument>cmf.block.reference</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
</service>

</services>
Expand Down
12 changes: 6 additions & 6 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
<service id="cmf.block.simple" class="Symfony\Cmf\Bundle\BlockBundle\Block\SimpleBlockService">
<tag name="sonata.block" />
<argument>cmf.block.simple</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
</service>

<service id="cmf.block.string" class="Symfony\Cmf\Bundle\BlockBundle\Block\StringBlockService">
<tag name="sonata.block" />
<argument>cmf.block.string</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
</service>

<service id="cmf.block.container" class="Symfony\Cmf\Bundle\BlockBundle\Block\ContainerBlockService">
<tag name="sonata.block" />
<argument>cmf.block.container</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
<argument type="service" id="sonata.block.renderer" />
<argument/><!-- for template construct -->
</service>

<service id="cmf.block.reference" class="Symfony\Cmf\Bundle\BlockBundle\Block\ReferenceBlockService">
<tag name="sonata.block" />
<argument>cmf.block.reference</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
<argument type="service" id="sonata.block.renderer" />
<argument type="service" id="sonata.block.context_manager" />
</service>
Expand All @@ -38,14 +38,14 @@
<tag name="sonata.block" />
<argument type="service" id="request_stack" />
<argument>cmf.block.action</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
<argument type="service" id="fragment.handler" />
</service>

<service id="cmf.block.slideshow" class="Symfony\Cmf\Bundle\BlockBundle\Block\ContainerBlockService">
<tag name="sonata.block" />
<argument>cmf.block.slideshow</argument>
<argument type="service" id="templating" />
<argument type="service" id="sonata.templating" />
<argument type="service" id="sonata.block.renderer" />
<argument>CmfBlockBundle:Block:block_slideshow.html.twig</argument>
</service>
Expand Down

0 comments on commit 2a7d6a8

Please sign in to comment.