Baikal\FrontendBundle\Controller\Addressbook\FormController::getFailureFunction PHP Метод

getFailureFunction() защищенный Метод

protected getFailureFunction ( Baikal\SystemBundle\Entity\User $user )
$user Baikal\SystemBundle\Entity\User
    protected function getFailureFunction(User $user)
    {
        $that = $this;
        return function ($form, Addressbook $addressbook, $isNew) use($user, $that) {
            return $this->render('BaikalFrontendBundle:Addressbook:form.html.twig', array('form' => $form->createView(), 'user' => $user, 'addressbook' => $addressbook));
        };
    }