public static function setEventDispatcher(Dispatcher $dispatcher = null) { static::$dispatcher = $dispatcher; }