Skip to content

Commit

Permalink
Remove unneeded BC layer
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Oct 19, 2020
1 parent 934bdcf commit ac8553f
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 ac8553f

Please sign in to comment.