Changeset View
Changeset View
Standalone View
Standalone View
src/applications/console/plugin/DarkConsoleEventPlugin.php
<?php | <?php | ||||
final class DarkConsoleEventPlugin extends DarkConsolePlugin { | final class DarkConsoleEventPlugin extends DarkConsolePlugin { | ||||
public function getName() { | public function getName() { | ||||
return pht('Events'); | return pht('Events'); | ||||
} | } | ||||
public function getDescription() { | public function getDescription() { | ||||
return pht('Information about Phabricator events and event listeners.'); | return pht('Information about events and event listeners.'); | ||||
} | } | ||||
public function generateData() { | public function generateData() { | ||||
$listeners = PhutilEventEngine::getInstance()->getAllListeners(); | $listeners = PhutilEventEngine::getInstance()->getAllListeners(); | ||||
foreach ($listeners as $key => $listener) { | foreach ($listeners as $key => $listener) { | ||||
$listeners[$key] = array( | $listeners[$key] = array( | ||||
'id' => $listener->getListenerID(), | 'id' => $listener->getListenerID(), | ||||
'class' => get_class($listener), | 'class' => get_class($listener), | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |