public function action($action, $parameters = [], $status = 302, $headers = []) { $path = $this->generator->action($action, $parameters); return $this->to($path, $status, $headers); }
public function postFork($hash) { $parent = $this->repository->getByHash($hash); $command = new Commands\CreateForkCommand($this->request->get('code'), $this->auth->user(), $parent); $fork = $this->bus->execute($command); return $this->redirector->action('BinController@getShow', [$fork->hash]); }