- Added caching mechanism as an event listener
This commit is contained in:
1 parent
b601939459
commit
9eed2fe1a8
25 files changed
+607
-402
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Alter {
|
||||
public function execute(RepositoryInterface $repository, array $fields) : void;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Create {
|
||||
public function execute(RepositoryInterface $repository) : void;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Entity\EntityInterface;
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Delete {
|
||||
public function execute(RepositoryInterface $repository, EntityInterface $entity) : void;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Insert {
|
||||
public function execute(RepositoryInterface $repository, object|array $entity, ? array $dataset = null, bool $replace = false) : void;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Truncate {
|
||||
public function execute(RepositoryInterface $repository, ? string $table = null, ? string $alias = null, ? string $schema = null) : void;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Event\Query;
|
||||
|
||||
use Ulmus\Repository\RepositoryInterface;
|
||||
|
||||
interface Update {
|
||||
public function execute(RepositoryInterface $repository, object|array $entity, ? array $dataset = null, bool $replace = false) : void;
|
||||
}
|
||||
Reference in new issue
Block a user