Controller/AddressController.php
public function listAction()
    {
        $user = $this->getUser();
        $repository = $this->get('ekyna_user.address.repository');

        $addresses = $repository->findByUser($user);

        return $this->render('EkynaUserBundle:Address:list.html.twig', [
            'addresses' => $addresses
        ]);
    }
public function listAction()
    {
        $user = $this->getUser();
        $repository = $this->get('ekyna_user.address.repository');

        $addresses = $repository->findByUser($user);

        return $this->render('EkynaUserBundle:Address:list.html.twig', [
            'addresses' => $addresses
        ]);
    }
public function listAction ( ) { $ user = $ this -> getUser ( ) ; $ repository = $ this -> get ( 'ekyna_user.address.repository' ) ; $ addresses = $ repository -> findByUser ( $ user ) ; return $ this -> render ( 'EkynaUserBundle:Address:list.html.twig' , [ 'addresses' => $ addresses ] ) ; }
List address action.

@return \Symfony\Component\HttpFoundation\Response
List address action .