Skip to content
Permalink
Browse files

Refactoring: introduce our InvalidArgumentException and don't rely on…

… contributte|nett/utils at all
  • Loading branch information
f3l1x committed Jan 6, 2020
1 parent 648f0f9 commit 0ac7b3c9df249f90c59625e936c105a5787fd855
@@ -9,10 +9,10 @@
use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
use Nette\DI\Definitions\Statement;
use Nette\DI\Helpers;
use Nette\InvalidArgumentException;
use Nette\Schema\Expect;
use Nette\Schema\Schema;
use Nettrine\ORM\EntityManagerDecorator;
use Nettrine\ORM\Exception\Logical\InvalidArgumentException;
use Nettrine\ORM\Exception\Logical\InvalidStateException;
use Nettrine\ORM\ManagerRegistry;
use Nettrine\ORM\Mapping\ContainerEntityListenerResolver;
@@ -0,0 +1,10 @@
<?php declare(strict_types = 1);

namespace Nettrine\ORM\Exception\Logical;

use Nettrine\ORM\Exception\LogicalException;

class InvalidArgumentException extends LogicalException
{

}
@@ -3,8 +3,8 @@
namespace Nettrine\ORM\Mapping;

use Doctrine\ORM\Mapping\EntityListenerResolver;
use InvalidArgumentException;
use Nette\DI\Container;
use Nettrine\ORM\Exception\Logical\InvalidArgumentException;

class ContainerEntityListenerResolver implements EntityListenerResolver
{
@@ -5,13 +5,13 @@
use Nette\DI\Compiler;
use Nette\DI\Container;
use Nette\DI\ContainerLoader;
use Nette\InvalidArgumentException;
use Nettrine\Annotations\DI\AnnotationsExtension;
use Nettrine\Cache\DI\CacheExtension;
use Nettrine\DBAL\DI\DbalExtension;
use Nettrine\ORM\DI\OrmAnnotationsExtension;
use Nettrine\ORM\DI\OrmExtension;
use Nettrine\ORM\EntityManagerDecorator;
use Nettrine\ORM\Exception\Logical\InvalidArgumentException;
use Nettrine\ORM\ManagerRegistry;
use stdClass;
use Tests\Fixtures\DummyConfiguration;

0 comments on commit 0ac7b3c

Please sign in to comment.
You can’t perform that action at this time.