Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104545643
PhabricatorEventEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Mar 10, 08:31
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Mar 12, 08:31 (2 d)
Engine
blob
Format
Raw Data
Handle
24810293
Attached To
rPH Phabricator
PhabricatorEventEngine.php
View Options
<?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
();
}
}
}
}
Event Timeline
Log In to Comment