Alex\BehatLauncher\Controller\RunController::deleteAction PHP Method

deleteAction() public method

public deleteAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request
    public function deleteAction(Request $request, $id)
    {
        try {
            $run = $this->getRunStorage()->getRun($id);
        } catch (\InvalidArgumentException $e) {
            throw $this->createNotFoundException(sprintf('Run #%s not found.', $id));
        }
        $this->getRunStorage()->deleteRun($run);
        return $this->redirect($this->generateUrl('run_list'));
    }