/** * Handle the command. * * @param ModuleRepositoryInterface $modules * @param Dispatcher $events * @return bool */ public function handle(ModuleRepositoryInterface $modules, Dispatcher $events) { $modules->enabled($this->module); $events->fire(new ModuleWasEnabled($this->module)); return true; }