Final Class Yiisoft\Yii\Debug\Collector\EventDispatcherInterfaceProxy
| Inheritance | Yiisoft\Yii\Debug\Collector\EventDispatcherInterfaceProxy |
|---|---|
| Implements | Psr\EventDispatcher\EventDispatcherInterface |
| Uses Traits | Yiisoft\Yii\Debug\ProxyDecoratedCalls |
Public Methods
Method Details
Defined in: Yiisoft\Yii\Debug\ProxyDecoratedCalls::__call()
| public mixed __call ( string $name, array $arguments ) | ||
| $name | string | |
| $arguments | array | |
public function __call(string $name, array $arguments)
{
/**
* @psalm-suppress MixedMethodCall
*/
return $this->decorated->$name(...$arguments);
}
| public mixed __construct ( \Psr\EventDispatcher\EventDispatcherInterface $decorated, Yiisoft\Yii\Debug\Collector\EventCollector $collector ) | ||
| $decorated | \Psr\EventDispatcher\EventDispatcherInterface | |
| $collector | Yiisoft\Yii\Debug\Collector\EventCollector | |
public function __construct(
private readonly EventDispatcherInterface $decorated,
private readonly EventCollector $collector
) {
}
Defined in: Yiisoft\Yii\Debug\ProxyDecoratedCalls::__get()
| public mixed __get ( string $name ) | ||
| $name | string | |
public function __get(string $name)
{
return $this->decorated->$name;
}
Defined in: Yiisoft\Yii\Debug\ProxyDecoratedCalls::__set()
| public void __set ( string $name, mixed $value ) | ||
| $name | string | |
| $value | mixed | |
public function __set(string $name, mixed $value): void
{
$this->decorated->$name = $value;
}
| public object dispatch ( object $event ) | ||
| $event | object | |
public function dispatch(object $event): object
{
/** @psalm-var array{file: string, line: int} $callStack */
$callStack = debug_backtrace()[0];
$this->collector->collect($event, $callStack['file'] . ':' . $callStack['line']);
return $this->decorated->dispatch($event);
}
Signup or Login in order to comment.