diff --git a/composer.json b/composer.json index 88803804..baa08f11 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^7.1", "doctrine/orm": "~2.7", "doctrine/dbal": "~2.9", - "kdyby/console": "^2.7.1", + "kdyby/console": "^2.7.1 || ^4.0.0", "kdyby/annotations": "^3.0", "kdyby/doctrine-cache": "^3.0", "kdyby/strict-objects": "^2.0", diff --git a/src/Kdyby/Doctrine/DI/IRepositoryFactory.php b/src/Kdyby/Doctrine/DI/IRepositoryFactory.php index b0daaa1d..3474656f 100644 --- a/src/Kdyby/Doctrine/DI/IRepositoryFactory.php +++ b/src/Kdyby/Doctrine/DI/IRepositoryFactory.php @@ -22,12 +22,5 @@ */ interface IRepositoryFactory { - - /** - * @param ORM\EntityManagerInterface $entityManager - * @param ORM\Mapping\ClassMetadata $classMetadata - * @return EntityRepository - */ - public function create(ORM\EntityManagerInterface $entityManager, ORM\Mapping\ClassMetadata $classMetadata); - + public function create(ORM\EntityManagerInterface $em, ORM\Mapping\ClassMetadata $class): EntityRepository; }