Skip to content

Commit

Permalink
Merge pull request #102 from eric-chau/fix-doctrine-middleware-pass
Browse files Browse the repository at this point in the history
fixed typo and missing use statement in DoctrineMiddlewarePass
  • Loading branch information
rosstuck authored Apr 25, 2018
2 parents 50e7abe + a657506 commit 34dfbfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DependencyInjection/Compiler/DoctrineMiddlewarePass.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace League\Tactician\Bundle\DependencyInjection\Compiler;

use League\Tactician\Doctrine\ORM\RollbackOnlyTransactionMiddleware;
use League\Tactician\Doctrine\ORM\TransactionMiddleware;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down Expand Up @@ -40,7 +41,7 @@ public function process(ContainerBuilder $container)

$defaultEntityManager = $container->getParameter('doctrine.default_entity_manager');
$container->setAlias('tactician.middleware.doctrine', sprintf('tactician.middleware.doctrine.%s', $defaultEntityManager));
$container->setAlias('tactician.middleware.doctrine_rollback_only', sprintf('tactician.middleware.doctrine.%s', $defaultEntityManager));
$container->setAlias('tactician.middleware.doctrine_rollback_only', sprintf('tactician.middleware.doctrine_rollback_only.%s', $defaultEntityManager));
}
}

0 comments on commit 34dfbfa

Please sign in to comment.