X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/league/event/src
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
league
/
event
/
src
/
📁
..
📄
AbstractEvent.php
(988 B)
📄
AbstractListener.php
(222 B)
📄
BufferedEmitter.php
(811 B)
📄
CallbackListener.php
(1.14 KB)
📄
Emitter.php
(6.01 KB)
📄
EmitterAwareInterface.php
(363 B)
📄
EmitterAwareTrait.php
(669 B)
📄
EmitterInterface.php
(2.19 KB)
📄
EmitterTrait.php
(2.87 KB)
📄
Event.php
(631 B)
📄
EventInterface.php
(702 B)
📄
Generator.php
(141 B)
📄
GeneratorInterface.php
(194 B)
📄
GeneratorTrait.php
(627 B)
📄
ListenerAcceptor.php
(843 B)
📄
ListenerAcceptorInterface.php
(1.53 KB)
📄
ListenerInterface.php
(407 B)
📄
ListenerProviderInterface.php
(285 B)
📄
OneTimeListener.php
(1.15 KB)
Editing: CallbackListener.php
<?php namespace League\Event; class CallbackListener implements ListenerInterface { /** * The callback. * * @var callable */ protected $callback; /** * Create a new callback listener instance. * * @param callable $callback */ public function __construct(callable $callback) { $this->callback = $callback; } /** * Get the callback. * * @return callable */ public function getCallback() { return $this->callback; } /** * @inheritdoc */ public function handle(EventInterface $event) { call_user_func_array($this->callback, func_get_args()); } /** * @inheritdoc */ public function isListener($listener) { if ($listener instanceof CallbackListener) { $listener = $listener->getCallback(); } return $this->callback === $listener; } /** * Named constructor * * @param callable $callable * * @return static */ public static function fromCallable(callable $callable) { return new static($callable); } }
Upload File
Create Folder