Skip to content

Commit

Permalink
Merge pull request #1232 from chalasr/dead-layer
Browse files Browse the repository at this point in the history
Remove unneeded BC layer
  • Loading branch information
ostrolucky authored Oct 19, 2020
2 parents 934bdcf + ac8553f commit 6f3f4d9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Repository/ContainerRepositoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Repository\RepositoryFactory;
use Doctrine\Persistence\ObjectRepository;
use InvalidArgumentException;
use Psr\Container\ContainerInterface;
use RuntimeException;

Expand All @@ -25,14 +24,8 @@ final class ContainerRepositoryFactory implements RepositoryFactory
/**
* @param ContainerInterface $container A service locator containing the repositories
*/
public function __construct(ContainerInterface $container = null)
public function __construct(ContainerInterface $container)
{
// When DoctrineBundle requires Symfony 3.3+, this can be removed
// and the $container argument can become required.
if ($container === null) {
throw new InvalidArgumentException(sprintf('The first argument of %s::__construct() is required on Symfony 3.3 or higher.', self::class));
}

$this->container = $container;
}

Expand Down

0 comments on commit 6f3f4d9

Please sign in to comment.