Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b5f20d7d4b | |||
| 244e84772e | |||
| 9529907710 | |||
| 2c31bea602 | |||
| fd01c8b33c | |||
| 47979c6eab | |||
| cee00f58e3 | |||
| ebbee7a5f0 |
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
namespace PHPSTORM_META {
|
namespace PHPSTORM_META {
|
||||||
|
|
||||||
// Reflect
|
// Reflect
|
||||||
use Http\Context\Context;
|
use Kiri\Message\Context\Context;
|
||||||
use Kiri\Di\Container;
|
use Kiri\Di\Container;
|
||||||
|
|
||||||
override(Container::get(0), map('@'));
|
override(Container::get(0), map('@'));
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
+1
-3
@@ -10,15 +10,13 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.0",
|
"php": ">=8.0",
|
||||||
"ext-json": "*",
|
|
||||||
"psr/event-dispatcher": "^1.0"
|
"psr/event-dispatcher": "^1.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Kiri\\Events\\": "src/"
|
"Kiri\\Events\\": "./"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"kwn/php-rdkafka-stubs": "^2.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user