Skip to content

Commit

Permalink
Removed CoreBundle deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and OskarStark committed Jan 15, 2019
1 parent 4303e3e commit 5a3f9c4
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"php": "^7.1",
"cocur/slugify": "^1.0 || ^2.0 || ^3.0",
"sonata-project/admin-bundle": "^3.35",
"sonata-project/block-bundle": "^3.11",
"sonata-project/block-bundle": "^3.14",
"sonata-project/cache": "^1.0.2 || ^2.0",
"sonata-project/cache-bundle": "^2.4",
"sonata-project/core-bundle": "^3.9",
"sonata-project/core-bundle": "^3.14",
"sonata-project/datagrid-bundle": "^2.3",
"sonata-project/doctrine-extensions": "^1.0",
"sonata-project/doctrine-extensions": "^1.1.3",
"sonata-project/doctrine-orm-admin-bundle": "^3.5",
"sonata-project/easy-extends-bundle": "^2.5",
"sonata-project/notification-bundle": "^3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/SiteAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\CoreBundle\Form\Type\DateTimePickerType;
use Sonata\Form\Type\DateTimePickerType;
use Sonata\PageBundle\Route\RoutePageGenerator;
use Symfony\Component\Form\Extension\Core\Type\LocaleType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/SnapshotAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\Cache\CacheManagerInterface;
use Sonata\CoreBundle\Form\Type\DateTimePickerType;
use Sonata\Form\Type\DateTimePickerType;

/**
* Admin definition for the Snapshot class.
Expand Down
2 changes: 1 addition & 1 deletion src/Block/ChildrenPagesBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\CoreBundle\Form\Type\ImmutableArrayType;
use Sonata\Form\Type\ImmutableArrayType;
use Sonata\PageBundle\CmsManager\CmsManagerSelectorInterface;
use Sonata\PageBundle\Exception\PageNotFoundException;
use Sonata\PageBundle\Form\Type\PageSelectorType;
Expand Down
4 changes: 2 additions & 2 deletions src/Block/PageListBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService;
use Sonata\BlockBundle\Meta\Metadata;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\CoreBundle\Form\Type\ImmutableArrayType;
use Sonata\CoreBundle\Model\Metadata;
use Sonata\Form\Type\ImmutableArrayType;
use Sonata\PageBundle\Model\Page;
use Sonata\PageBundle\Model\PageManagerInterface;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Block/SharedBlockBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
use Sonata\BlockBundle\Block\Service\AbstractAdminBlockService;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\BlockBundle\Model\BlockManagerInterface;
use Sonata\CoreBundle\Form\Type\ImmutableArrayType;
use Sonata\CoreBundle\Validator\ErrorElement;
use Sonata\Form\Type\ImmutableArrayType;
use Sonata\PageBundle\Admin\SharedBlockAdmin;
use Sonata\PageBundle\Model\Block;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/BlockManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace Sonata\PageBundle\Entity;

use Sonata\BlockBundle\Model\BlockManagerInterface;
use Sonata\CoreBundle\Model\BaseEntityManager;
use Sonata\DatagridBundle\Pager\Doctrine\Pager;
use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
use Sonata\Doctrine\Entity\BaseEntityManager;

/**
* This class manages BlockInterface persistency with the Doctrine ORM.
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/PageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace Sonata\PageBundle\Entity;

use Doctrine\Common\Persistence\ManagerRegistry;
use Sonata\CoreBundle\Model\BaseEntityManager;
use Sonata\DatagridBundle\Pager\Doctrine\Pager;
use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
use Sonata\Doctrine\Entity\BaseEntityManager;
use Sonata\PageBundle\Model\Page;
use Sonata\PageBundle\Model\PageInterface;
use Sonata\PageBundle\Model\PageManagerInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/SiteManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Sonata\PageBundle\Entity;

use Sonata\CoreBundle\Model\BaseEntityManager;
use Sonata\DatagridBundle\Pager\Doctrine\Pager;
use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
use Sonata\Doctrine\Entity\BaseEntityManager;
use Sonata\PageBundle\Model\SiteManagerInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/SnapshotManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace Sonata\PageBundle\Entity;

use Doctrine\Common\Persistence\ManagerRegistry;
use Sonata\CoreBundle\Model\BaseEntityManager;
use Sonata\DatagridBundle\Pager\Doctrine\Pager;
use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery;
use Sonata\Doctrine\Entity\BaseEntityManager;
use Sonata\PageBundle\Model\PageInterface;
use Sonata\PageBundle\Model\SnapshotInterface;
use Sonata\PageBundle\Model\SnapshotManagerInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiBlockType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Form\Type;

use Sonata\CoreBundle\Form\Type\BaseDoctrineORMSerializationType;
use Sonata\Form\Type\BaseDoctrineORMSerializationType;

class ApiBlockType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiPageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Form\Type;

use Sonata\CoreBundle\Form\Type\BaseDoctrineORMSerializationType;
use Sonata\Form\Type\BaseDoctrineORMSerializationType;

class ApiPageType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiSiteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Form\Type;

use Sonata\CoreBundle\Form\Type\BaseDoctrineORMSerializationType;
use Sonata\Form\Type\BaseDoctrineORMSerializationType;

class ApiSiteType extends BaseDoctrineORMSerializationType
{
Expand Down
4 changes: 2 additions & 2 deletions src/Model/PageManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sonata\PageBundle\Model;

use Sonata\CoreBundle\Model\ManagerInterface;
use Sonata\CoreBundle\Model\PageableManagerInterface;
use Sonata\Doctrine\Model\ManagerInterface;
use Sonata\Doctrine\Model\PageableManagerInterface;

/**
* Defines methods to interact with the persistency layer of a PageInterface.
Expand Down
4 changes: 2 additions & 2 deletions src/Model/SiteManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sonata\PageBundle\Model;

use Sonata\CoreBundle\Model\ManagerInterface;
use Sonata\CoreBundle\Model\PageableManagerInterface;
use Sonata\Doctrine\Model\ManagerInterface;
use Sonata\Doctrine\Model\PageableManagerInterface;

/**
* SiteManagerInterface.
Expand Down
4 changes: 2 additions & 2 deletions src/Model/SnapshotManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sonata\PageBundle\Model;

use Sonata\CoreBundle\Model\ManagerInterface;
use Sonata\CoreBundle\Model\PageableManagerInterface;
use Sonata\Doctrine\Model\ManagerInterface;
use Sonata\Doctrine\Model\PageableManagerInterface;

/**
* Defines methods to interact with the persistency layer of a SnapshotInterface.
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/validation.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">
<class name="Sonata\BlockBundle\Model\BaseBlock">
<constraint name="Sonata\CoreBundle\Validator\Constraints\InlineConstraint">
<constraint name="Sonata\Form\Validator\Constraints\InlineConstraint">
<option name="service">sonata.block.manager</option>
<option name="method">validate</option>
</constraint>
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/BlockSerializerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Serializer;

use Sonata\CoreBundle\Serializer\BaseSerializerHandler;
use Sonata\Serializer\BaseSerializerHandler;

/**
* @author Sylvain Deloux <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/PageSerializerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Serializer;

use Sonata\CoreBundle\Serializer\BaseSerializerHandler;
use Sonata\Serializer\BaseSerializerHandler;

/**
* @author Sylvain Deloux <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/SiteSerializerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Serializer;

use Sonata\CoreBundle\Serializer\BaseSerializerHandler;
use Sonata\Serializer\BaseSerializerHandler;

/**
* @author Sylvain Deloux <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/SnapshotSerializerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\PageBundle\Serializer;

use Sonata\CoreBundle\Serializer\BaseSerializerHandler;
use Sonata\Serializer\BaseSerializerHandler;

/**
* @author Benoit de JAcobet <[email protected]>
Expand Down

0 comments on commit 5a3f9c4

Please sign in to comment.