Baikal\AdminBundle\Controller\Application\ListController::indexAction PHP Method

indexAction() public method

public indexAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request
    public function indexAction(Request $request)
    {
        $that = $this;
        $apps = $this->get('baikal.repository.oauthclient')->findAll();
        return $this->render('BaikalAdminBundle:Application:list.html.twig', array('apps' => $apps, 'urls' => array('edit' => function (Application $application) use(&$that) {
            return $that->generateUrl('baikal_admin_application_form_edit', array('application' => $application->getId()));
        }, 'delete' => function (Application $application) use(&$that) {
            return $that->generateUrl('baikal_admin_application_list_delete', array('application' => $application->getId()));
        })));
    }