public function handle(EditThemeCommand $command) { $repository = new Repository($command->repository); $repository->setBranch($command->branch); $this->themes->editTheme($command->stylesheet, array('repository' => $repository, 'branch' => $repository->getBranch(), 'status' => $command->status, 'ptd' => $command->pushToDeploy, 'subdirectory' => $command->subdirectory)); do_action('wppusher_theme_was_edited', new ThemeWasEdited()); }
public function handle(EditPluginCommand $command) { $repository = new Repository($command->repository); $repository->setBranch($command->branch); $this->plugins->editPlugin($command->file, array('repository' => $repository, 'branch' => $repository->getBranch(), 'status' => $command->status, 'ptd' => $command->pushToDeploy, 'subdirectory' => $command->subdirectory)); do_action('wppusher_plugin_was_edited', new PluginWasEdited()); }