Browse files

rename SlideshowItemBlock to ImageBlock

  • Loading branch information...
1 parent ec8bc07 commit bc8534221556383c9a329a7491a1f79b1062b82b Reto Ryter committed Mar 15, 2013
View
1 DependencyInjection/Configuration.php
@@ -76,7 +76,6 @@ public function getConfigTreeBuilder()
->end()
->end()
->end()
-
->end()
;
View
6 Document/SlideshowItemBlock.php → Document/ImageBlock.php
@@ -6,11 +6,11 @@
use Symfony\Cmf\Bundle\BlockBundle\Document\BaseBlock;
/**
- * Block that acts as an item of a SlideshowBlock
+ * Block that can act as an item of a SlideshowBlock
*
* @PHPCRODM\Document(referenceable=true)
*/
-class SlideshowItemBlock extends BaseBlock
+class ImageBlock extends BaseBlock
{
/**
@@ -29,7 +29,7 @@ class SlideshowItemBlock extends BaseBlock
*/
public function getType()
{
- return 'symfony_cmf.block.slideshow_item';
+ return 'symfony_cmf.block.image';
}
public function setLabel($label)
View
5 Document/MultilangSlideshowItemBlock.php → Document/MultilangImageBlock.php
@@ -3,14 +3,13 @@
namespace Symfony\Cmf\Bundle\BlockBundle\Document;
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
-use Symfony\Cmf\Bundle\BlockBundle\Document\BaseBlock;
/**
- * Block that acts as an item of a SlideshowBlock
+ * Block that can act as an item of a SlideshowBlock
*
* @PHPCRODM\Document(referenceable=true, translator="attribute")
*/
-class MultilangSlideshowItemBlock extends SlideshowItemBlock
+class MultilangImageBlock extends ImageBlock
{
/** @PHPCRODM\Locale */
View
8 Resources/config/slideshow.admin.xml
@@ -9,8 +9,8 @@
<parameter key="symfony_cmf_block.minimal_slideshow_admin_class">Symfony\Cmf\Bundle\BlockBundle\Admin\MinimalSlideshowAdmin</parameter>
<parameter key="symfony_cmf_block.slideshow_document_class">Symfony\Cmf\Bundle\BlockBundle\Document\SlideshowBlock</parameter>
<parameter key="symfony_cmf_block.slideshow_item_admin_class">Symfony\Cmf\Bundle\BlockBundle\Admin\SlideshowItemAdmin</parameter>
- <parameter key="symfony_cmf_block.slideshow_item_document_class">Symfony\Cmf\Bundle\BlockBundle\Document\SlideshowItemBlock</parameter>
- <parameter key="symfony_cmf_block.multilang_slideshow_item_document_class">Symfony\Cmf\Bundle\BlockBundle\Document\MultilangSlideshowItemBlock</parameter>
+ <parameter key="symfony_cmf_block.image_document_class">Symfony\Cmf\Bundle\BlockBundle\Document\ImageBlock</parameter>
+ <parameter key="symfony_cmf_block.multilang_image_document_class">Symfony\Cmf\Bundle\BlockBundle\Document\MultilangImageBlock</parameter>
</parameters>
<services>
@@ -45,7 +45,7 @@
<service id="symfony_cmf_block.slideshow_item_admin" class="%symfony_cmf_block.slideshow_item_admin_class%">
<tag name="sonata.admin" manager_type="doctrine_phpcr" group="dashboard.group_content" label_catalogue="SymfonyCmfBlockBundle" label="dashboard.label_slideshow_item_block" label_translator_strategy="sonata.admin.label.strategy.underscore" />
<argument/>
- <argument>%symfony_cmf_block.multilang_slideshow_item_document_class%</argument>
+ <argument>%symfony_cmf_block.image_document_class%</argument>
<argument>SonataAdminBundle:CRUD</argument>
<call method="setRouteBuilder">
@@ -60,7 +60,7 @@
<service id="symfony_cmf_block.multilang_slideshow_item_admin" class="%symfony_cmf_block.slideshow_item_admin_class%">
<tag name="sonata.admin" manager_type="doctrine_phpcr" group="dashboard.group_content" label_catalogue="SymfonyCmfBlockBundle" label="dashboard.label_slideshow_item_block" label_translator_strategy="sonata.admin.label.strategy.underscore" />
<argument/>
- <argument>%symfony_cmf_block.multilang_slideshow_item_document_class%</argument>
+ <argument>%symfony_cmf_block.multilang_image_document_class%</argument>
<argument>SonataAdminBundle:CRUD</argument>
<call method="setRouteBuilder">
View
4 Resources/config/slideshow.xml
@@ -16,9 +16,9 @@
</service>
<!-- simple block service is reused for slideshow items -->
- <service id="symfony_cmf.block.slideshow_item" class="Symfony\Cmf\Bundle\BlockBundle\Block\SimpleBlockService">
+ <service id="symfony_cmf.block.image" class="Symfony\Cmf\Bundle\BlockBundle\Block\SimpleBlockService">
<tag name="sonata.block" />
- <argument>symfony_cmf.block.slideshow_item</argument>
+ <argument>symfony_cmf.block.image</argument>
<argument type="service" id="templating" />
<argument>SymfonyCmfBlockBundle:Block:block_slideshow_item.html.twig</argument>
</service>

0 comments on commit bc85342

Please sign in to comment.