From 46b9378845c6cc3e22d07d77c215ade63b28fc2c Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Fri, 27 Oct 2023 15:13:22 +0300 Subject: [PATCH] Add PrototypeBootloader to DEPENDENCIES --- src/Bootloader/PrototypeBootloader.php | 4 ++++ tests/app/Entities/Role.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Bootloader/PrototypeBootloader.php b/src/Bootloader/PrototypeBootloader.php index 52f09f9..7d6bf0e 100644 --- a/src/Bootloader/PrototypeBootloader.php +++ b/src/Bootloader/PrototypeBootloader.php @@ -15,6 +15,10 @@ final class PrototypeBootloader extends Bootloader { + protected const DEPENDENCIES = [ + BasePrototypeBootloader::class, + ]; + public function boot(AbstractKernel $kernel): void { $kernel->bootstrapped($this->bindDatabase(...)); diff --git a/tests/app/Entities/Role.php b/tests/app/Entities/Role.php index fd75a1c..72b956a 100644 --- a/tests/app/Entities/Role.php +++ b/tests/app/Entities/Role.php @@ -6,9 +6,9 @@ use Cycle\Annotated\Annotation\Column; use Cycle\Annotated\Annotation\Entity; -use Spiral\App\Repositories\RoleRepositoryInterface; +use Spiral\App\Repositories\RoleRepository; -#[Entity(repository: RoleRepositoryInterface::class)] +#[Entity(repository: RoleRepository::class)] class Role { #[Column(type: 'primary')]