Skip to content

Commit

Permalink
Merge pull request #2667 from antograssiot/filtereagerloadingextension
Browse files Browse the repository at this point in the history
Rely on interface not concrete implementation in constructor. closes …
  • Loading branch information
teohhanhui authored Mar 28, 2019
2 parents 13ae9ff + cda29f7 commit a7cbcb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension;

use ApiPlatform\Core\Api\ResourceClassResolver;
use ApiPlatform\Core\Api\ResourceClassResolverInterface;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\EagerLoadingTrait;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryBuilderHelper;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
Expand All @@ -32,7 +32,7 @@ final class FilterEagerLoadingExtension implements ContextAwareQueryCollectionEx

private $resourceClassResolver;

public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFactory, bool $forceEager = true, ResourceClassResolver $resourceClassResolver = null)
public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFactory, bool $forceEager = true, ResourceClassResolverInterface $resourceClassResolver = null)
{
$this->resourceMetadataFactory = $resourceMetadataFactory;
$this->forceEager = $forceEager;
Expand Down

0 comments on commit a7cbcb2

Please sign in to comment.