Page MenuHomeIsabelle/Phabricator
Diviner Phabricator Tech Docs PhabricatorAutoEventListener

abstract class PhabricatorAutoEventListener
Phabricator Technical Documentation (Events)

Event listener which is registered automatically, without requiring configuration.

Normally, event listeners must be registered via applications. This is appropriate for structured listeners in libraries, but it adds a lot of overhead and is cumbersome for one-off listeners.

All concrete subclasses of this class are automatically registered at startup. This allows it to be used with custom one-offs that can be dropped into phabricator/src/extensions/.

Methods

public function setApplication($application)
Inherited

This method is not documented.
Parameters
PhabricatorApplication$application
Return
wild

public function getApplication()
Inherited

This method is not documented.
Return
wild

public function hasApplicationCapability($viewer, $capability)
Inherited

This method is not documented.
Parameters
PhabricatorUser$viewer
$capability
Return
wild

public function canUseApplication($viewer)
Inherited

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

protected function addActionMenuItems($event, $items)
Inherited

This method is not documented.
Parameters
PhutilEvent$event
$items
Return
wild