Skip to content

Add missing doctrine alias removed in doctrine-bundle@1.9 #1876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<tag name="api_platform.doctrine.orm.query_extension.collection" priority="16" />
</service>
<service id="ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\OrderExtension" alias="api_platform.doctrine.orm.query_extension.order" />
<service id="Doctrine\Common\Persistence\ManagerRegistry" alias="doctrine" />
</services>

</container>
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
use ApiPlatform\Core\Tests\Fixtures\TestBundle\TestBundle;
use ApiPlatform\Core\Validator\ValidatorInterface;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Doctrine\Common\Persistence\ManagerRegistry;
use FOS\UserBundle\FOSUserBundle;
use Nelmio\ApiDocBundle\NelmioApiDocBundle;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -735,6 +736,7 @@ private function getBaseContainerBuilderProphecy()
PaginationExtension::class => 'api_platform.doctrine.orm.query_extension.pagination',
OrderExtension::class => 'api_platform.doctrine.orm.query_extension.order',
ValidatorInterface::class => 'api_platform.validator',
ManagerRegistry::class => 'doctrine',
];

foreach ($aliases as $alias => $service) {
Expand Down