Skip to content

Commit 9e56a6a

Browse files
committed
adjust to doctrine commons split out persistence
mark conflict with too old doctrine common versions
1 parent 62f44b2 commit 9e56a6a

18 files changed

+29
-24
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
},
4747
"conflict": {
4848
"doctrine/phpcr-odm": "<1.4",
49+
"doctrine/common": "<2.10.0",
50+
"doctrine/persistence": "<1.3.0",
4951
"phpunit/phpunit": "<6"
5052
},
5153
"autoload": {

src/CmfRoutingBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;
1515
use Doctrine\Bundle\PHPCRBundle\DependencyInjection\Compiler\DoctrinePhpcrMappingsPass;
16-
use Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator;
1716
use Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver as PHPCRXmlDriver;
1817
use Doctrine\ODM\PHPCR\Version as PHPCRVersion;
1918
use Doctrine\ORM\Mapping\Driver\XmlDriver as ORMXmlDriver;
2019
use Doctrine\ORM\Version as ORMVersion;
20+
use Doctrine\Persistence\Mapping\Driver\DefaultFileLocator;
2121
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\SetRouterPass;
2222
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\TemplatingValidatorPass;
2323
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\ValidationPass;

src/Doctrine/DoctrineProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine;
1313

14-
use Doctrine\Common\Persistence\ManagerRegistry;
15-
use Doctrine\Common\Persistence\ObjectManager;
14+
use Doctrine\Persistence\ManagerRegistry;
15+
use Doctrine\Persistence\ObjectManager;
1616

1717
/**
1818
* Abstract class for doctrine based content repository and route provider

src/Doctrine/Orm/RouteProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm;
1313

14-
use Doctrine\Common\Persistence\ManagerRegistry;
15-
use Doctrine\Common\Persistence\ObjectRepository;
1614
use Doctrine\DBAL\Exception\TableNotFoundException;
15+
use Doctrine\Persistence\ManagerRegistry;
16+
use Doctrine\Persistence\ObjectRepository;
1717
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\DoctrineProvider;
1818
use Symfony\Cmf\Component\Routing\Candidates\CandidatesInterface;
1919
use Symfony\Cmf\Component\Routing\RouteProviderInterface;

src/Doctrine/Phpcr/IdPrefixListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr;
1313

14-
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
14+
use Doctrine\Persistence\Event\LifecycleEventArgs;
1515

1616
/**
1717
* Doctrine PHPCR-ODM listener to tell routes what part of their id is the URL.

src/Doctrine/Phpcr/LocaleListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr;
1313

14-
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
1514
use Doctrine\ODM\PHPCR\DocumentManager;
1615
use Doctrine\ODM\PHPCR\Event\MoveEventArgs;
16+
use Doctrine\Persistence\Event\LifecycleEventArgs;
1717
use Symfony\Cmf\Bundle\RoutingBundle\Model\Route as ModelRoute;
1818

1919
/**

src/Doctrine/Phpcr/PrefixCandidates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr;
1313

14-
use Doctrine\Common\Persistence\ManagerRegistry;
1514
use Doctrine\ODM\PHPCR\DocumentManager;
1615
use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder;
16+
use Doctrine\Persistence\ManagerRegistry;
1717
use PHPCR\Util\PathHelper;
1818
use Symfony\Cmf\Component\Routing\Candidates\Candidates;
1919
use Symfony\Component\HttpFoundation\Request;

src/Doctrine/Phpcr/RouteProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr;
1313

14-
use Doctrine\Common\Persistence\ManagerRegistry;
1514
use Doctrine\DBAL\Exception\TableNotFoundException;
1615
use Doctrine\ODM\PHPCR\DocumentManager;
16+
use Doctrine\Persistence\ManagerRegistry;
1717
use PHPCR\RepositoryException;
1818
use PHPCR\Util\UUIDHelper;
1919
use Psr\Log\LoggerInterface;

src/Doctrine/RouteConditionMetadataListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine;
1313

1414
use Doctrine\Common\EventSubscriber;
15-
use Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs;
1615
use Doctrine\ODM\PHPCR\Mapping\ClassMetadata as PhpcrClassMetadata;
1716
use Doctrine\ORM\Mapping\ClassMetadata as OrmClassMetadata;
17+
use Doctrine\Persistence\Event\LoadClassMetadataEventArgs;
1818
use Symfony\Component\Routing\Route;
1919

2020
/**

tests/Fixtures/App/DataFixtures/Phpcr/LoadRouteData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Tests\Fixtures\App\DataFixtures\Phpcr;
1313

1414
use Doctrine\Common\DataFixtures\FixtureInterface;
15-
use Doctrine\Common\Persistence\ObjectManager;
1615
use Doctrine\ODM\PHPCR\Document\Generic;
16+
use Doctrine\Persistence\ObjectManager;
1717
use PHPCR\Util\NodeHelper;
1818
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute;
1919
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;

0 commit comments

Comments
 (0)