Page MenuHomestyx hydra

PhabricatorEventEngine.php
No OneTemporary

PhabricatorEventEngine.php

<?php
/**
* @group events
*/
final class PhabricatorEventEngine {
public static function initialize() {
$listeners = PhabricatorEnv::getEnvConfig('events.listeners');
foreach ($listeners as $listener) {
try {
id(new $listener())->register();
} catch (Exception $ex) {
// If the listener does not exist, or throws when registering, just
// log it and continue. In particular, this is important to let you
// run `bin/config` in order to remove an invalid listener.
phlog($ex);
}
}
// Register the DarkConosole event logger.
id(new DarkConsoleEventPluginAPI())->register();
id(new ManiphestEdgeEventListener())->register();
$applications = PhabricatorApplication::getAllInstalledApplications();
foreach ($applications as $application) {
$listeners = $application->getEventListeners();
foreach ($listeners as $listener) {
$listener->setApplication($application);
$listener->register();
}
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 24, 1:22 PM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
360946
Default Alt Text
PhabricatorEventEngine.php (1 KB)

Event Timeline