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 %s events and event listeners.', | ||||
PhabricatorPlatformSite::getName()); | |||||
} | } | ||||
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 |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0