blob: c28143d23958031a9f1f7357cdecc6d9a4a6a3f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Exception;
use Doctrine\ORM\EntityRepository;
use LogicException;
final class InvalidEntityRepository extends LogicException implements ConfigurationException
{
public static function fromClassName(string $className): self
{
return new self(
"Invalid repository class '" . $className . "'. It must be a " . EntityRepository::class . '.',
);
}
}
|