Baikal\AdminBundle\Controller\Application\ListController::deleteAction PHP 메소드

deleteAction() 공개 메소드

public deleteAction ( Baikal\ModelBundle\Entity\OAuthClient $application )
$application Baikal\ModelBundle\Entity\OAuthClient
    public function deleteAction(Application $application)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($application);
        $em->flush();
        $this->get('session')->getFlashBag()->add('notice', 'Application <i class="fa fa-cube"></i> <strong>' . htmlspecialchars($application->getName()) . '</strong> has been deleted.');
        return $this->redirect($this->generateUrl('baikal_admin_application_list'));
    }