public static function getDispatcher() { if (self::$dispatcher == null) { self::$dispatcher = new EventDispatcher(); } return self::$dispatcher; }