Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
grafana
/
vendor
/
league
/
oauth2-server
/
src
/
EventEmitting
/
File Content:
EmitterAwarePolyfill.php
<?php declare (strict_types=1); namespace PleskGrafana\League\OAuth2\Server\EventEmitting; use PleskGrafana\League\Event\ListenerRegistry; use Psr\EventDispatcher\EventDispatcherInterface; trait EmitterAwarePolyfill { private EventEmitter $emitter; public function getEmitter() : EventEmitter { return $this->emitter ??= new EventEmitter(); } public function setEmitter(EventEmitter $emitter) : self { $this->emitter = $emitter; return $this; } public function getEventDispatcher() : EventDispatcherInterface { return $this->getEmitter(); } public function getListenerRegistry() : ListenerRegistry { return $this->getEmitter(); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
AbstractEvent.php
860 bytes
0644
EmitterAwareInterface.php
240 bytes
0644
EmitterAwarePolyfill.php
726 bytes
0644
EventEmitter.php
550 bytes
0644
N4ST4R_ID | Naxtarrr