Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fd01c8b33c | |||
| 47979c6eab | |||
| cee00f58e3 | |||
| ebbee7a5f0 |
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
namespace Kiri\Events;
|
namespace Kiri\Events;
|
||||||
|
|
||||||
use Annotation\Inject;
|
use Kiri\Abstracts\Component;
|
||||||
use Kiri\Abstracts\BaseObject;
|
use Kiri\Kiri;
|
||||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||||
use Psr\EventDispatcher\StoppableEventInterface;
|
use Psr\EventDispatcher\StoppableEventInterface;
|
||||||
|
|
||||||
@@ -11,19 +11,14 @@ use Psr\EventDispatcher\StoppableEventInterface;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class EventDispatch extends BaseObject implements EventDispatcherInterface
|
class EventDispatch extends Component implements EventDispatcherInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
|
||||||
* @var EventProvider
|
|
||||||
*/
|
|
||||||
#[Inject(EventProvider::class)]
|
|
||||||
public EventProvider $eventProvider;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param object $event
|
* @param object $event
|
||||||
* @return object
|
* @return object
|
||||||
|
* @throws \ReflectionException
|
||||||
*/
|
*/
|
||||||
public function dispatch(object $event): object
|
public function dispatch(object $event): object
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user