It does not find the Route prescribed using annotations, although debug: router shows that there is such a path. Here is how it is registered in the controller:
namespace Iphpsandbox\PhotoBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Iphpsandbox\PhotoBundle\Entity\Photo; use Symfony\Component\HttpFoundation\Request; class PhotoController extends Controller { /** * @Route ("/photos", name = "photos") */ Here is the routing.yml:
iphpsandbox_photo: resource: '@IphpsandboxPhotoBundle/Controller/PhotoController.php' type: annotation Connected the same way as AppBundle, but for some reason symfony issues
No route found for "GET / photos /"
GET /photos/andGET /photos- different routes (slash on the end) - Dmitriy Simushev