public function deleteAction(Module $entity)
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('module', 'DELETE')) {
            throw $this->createAccessDeniedException();
        }

        $handler = new ModuleFormHandler(
            $this->createDeleteForm('module_delete', $entity),
            $this->get('doctrine')->getManager(),
            $this->get('session')->getFlashBag()
        );

        $handler->delete($entity);

        return $this->redirect($this->generateUrl('module'));
    }