From 370c918d00f10924048d934c72753d023a0ede96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20B=C5=82oszyk?= Date: Tue, 5 May 2020 14:02:42 +0200 Subject: [PATCH] Fix #1731 --- composer.json | 2 +- src/Block/GalleryBlockService.php | 4 ++-- src/Block/GalleryListBlockService.php | 4 ++-- src/Block/MediaBlockService.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 5382126bc5..8e1803682b 100644 --- a/composer.json +++ b/composer.json @@ -79,7 +79,7 @@ "nelmio/api-doc-bundle": "^2.13.4", "sensio/framework-extra-bundle": "^5.1", "sonata-project/admin-bundle": "^3.18.3", - "sonata-project/block-bundle": "^3.17", + "sonata-project/block-bundle": "^3.18.5", "sonata-project/datagrid-bundle": "^2.5", "sonata-project/doctrine-orm-admin-bundle": "^3.14", "sonata-project/formatter-bundle": "^3.4 || ^4.0", diff --git a/src/Block/GalleryBlockService.php b/src/Block/GalleryBlockService.php index ec79f83ef6..1b5acc426e 100644 --- a/src/Block/GalleryBlockService.php +++ b/src/Block/GalleryBlockService.php @@ -18,7 +18,7 @@ use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Form\Type\ModelListType; use Sonata\BlockBundle\Block\BlockContextInterface; -use Sonata\BlockBundle\Block\Service\AbstractBlockService; +use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService; use Sonata\BlockBundle\Meta\Metadata; use Sonata\BlockBundle\Model\BlockInterface; use Sonata\Doctrine\Model\ManagerInterface; @@ -41,7 +41,7 @@ * * @author Thomas Rabaix */ -class GalleryBlockService extends AbstractBlockService +class GalleryBlockService extends AbstractAdminBlockService { /** * @var ManagerInterface diff --git a/src/Block/GalleryListBlockService.php b/src/Block/GalleryListBlockService.php index 421ccf261a..56ec7fcd85 100755 --- a/src/Block/GalleryListBlockService.php +++ b/src/Block/GalleryListBlockService.php @@ -15,7 +15,7 @@ use Sonata\AdminBundle\Form\FormMapper; use Sonata\BlockBundle\Block\BlockContextInterface; -use Sonata\BlockBundle\Block\Service\AbstractBlockService; +use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService; use Sonata\BlockBundle\Meta\Metadata; use Sonata\BlockBundle\Model\BlockInterface; use Sonata\Form\Type\ImmutableArrayType; @@ -32,7 +32,7 @@ /** * @final since sonata-project/media-bundle 3.21.0 */ -class GalleryListBlockService extends AbstractBlockService +class GalleryListBlockService extends AbstractAdminBlockService { /** * @var GalleryManagerInterface diff --git a/src/Block/MediaBlockService.php b/src/Block/MediaBlockService.php index 051b45161e..f5cecf97a6 100644 --- a/src/Block/MediaBlockService.php +++ b/src/Block/MediaBlockService.php @@ -17,7 +17,7 @@ use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Form\Type\ModelListType; use Sonata\BlockBundle\Block\BlockContextInterface; -use Sonata\BlockBundle\Block\Service\AbstractBlockService; +use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService; use Sonata\BlockBundle\Meta\Metadata; use Sonata\BlockBundle\Model\BlockInterface; use Sonata\Doctrine\Model\ManagerInterface; @@ -39,7 +39,7 @@ * * @author Thomas Rabaix */ -class MediaBlockService extends AbstractBlockService +class MediaBlockService extends AbstractAdminBlockService { /** * @var BaseMediaAdmin