3 final class DarkConsoleEventPluginAPI
extends PhabricatorEventListener
{
5 private static $events = array();
6 private static $discardMode = false;
8 public static function enableDiscardMode() {
9 self
::$discardMode = true;
12 public static function getEvents() {
16 public function register() {
17 $this->listen(PhabricatorEventType
::TYPE_ALL
);
20 public function handleEvent(PhutilEvent
$event) {
21 if (self
::$discardMode) {
24 self
::$events[] = $event;