Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
fix(di): Fix regression introduced in v0.4.3 (#29)
Browse files Browse the repository at this point in the history
Using \class_exists function for checking availabilty of interface is not possible,
\interface_exists used instead
  • Loading branch information
k911 authored Jan 6, 2019
1 parent b061732 commit c88fcf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private function registerHttpServerServices(array $config, ContainerBuilder $con
->setDecoratedService(RequestHandlerInterface::class, null, -10);
}

if ($config['entity_manager_handler'] || (null === $config['entity_manager_handler'] && \class_exists(EntityManagerInterface::class) && $this->isBundleLoaded($container, 'doctrine'))) {
if ($config['entity_manager_handler'] || (null === $config['entity_manager_handler'] && \interface_exists(EntityManagerInterface::class) && $this->isBundleLoaded($container, 'doctrine'))) {
$container->register(EntityManagerHandler::class)
->addArgument(new Reference(EntityManagerHandler::class.'.inner'))
->setAutowired(true)
Expand Down

0 comments on commit c88fcf2

Please sign in to comment.