Controller/Frontend/FavoriteController.php
public function listFavoriteAdsAction()
    {
        $customer = $this->getUser();
        if (!is_object($customer) || !$customer instanceof Customer) {
            return $this->redirectToRoute("miky_app_home_index");
        }

        return $this->render('MikyUserBundle:Frontend/Favorite:list.html.twig', array(
            'ads' => $customer->getFavoriteAds(),
        ));
    }
public function listFavoriteAdsAction()
    {
        $customer = $this->getUser();
        if (!is_object($customer) || !$customer instanceof Customer) {
            return $this->redirectToRoute("miky_app_home_index");
        }

        return $this->render('MikyUserBundle:Frontend/Favorite:list.html.twig', array(
            'ads' => $customer->getFavoriteAds(),
        ));
    }
@return Response|RedirectResponse

@throws AccessDeniedException