{"action":"created","issue":{"url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/101","repository_url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle","labels_url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/101/comments","events_url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/101/events","html_url":"https://github.com/prestaconcept/PrestaSitemapBundle/issues/101","id":145696172,"number":101,"title":"Annotated routes don't show in sitemap","user":{"login":"Mondane","id":1150272,"avatar_url":"https://avatars.githubusercontent.com/u/1150272?v=3","gravatar_id":"","url":"https://api.github.com/users/Mondane","html_url":"https://github.com/Mondane","followers_url":"https://api.github.com/users/Mondane/followers","following_url":"https://api.github.com/users/Mondane/following{/other_user}","gists_url":"https://api.github.com/users/Mondane/gists{/gist_id}","starred_url":"https://api.github.com/users/Mondane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mondane/subscriptions","organizations_url":"https://api.github.com/users/Mondane/orgs","repos_url":"https://api.github.com/users/Mondane/repos","events_url":"https://api.github.com/users/Mondane/events{/privacy}","received_events_url":"https://api.github.com/users/Mondane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T14:15:55Z","updated_at":"2016-05-30T14:53:54Z","closed_at":null,"body":"In a symfony 2.8 installation, I have the bundle configured as:\r\n\r\nconfig.yml\r\n```\r\npresta_sitemap:\r\n   route_annotation_listener: true\r\n```\r\n\r\nrouting.yml\r\n```\r\nfos_user:\r\n    resource: \"@FOSUserBundle/Resources/config/routing/all.xml\"\r\n\r\ncompany_dweh:\r\n    resource: \"@CompanyDwehBundle/Controller\"\r\n    type: annotation\r\n\r\nPrestaSitemapBundle:\r\n    resource: \"@PrestaSitemapBundle/Resources/config/routing.yml\"\r\n    prefix:   /\r\n```\r\n\r\nAnd in my controller:\r\n\r\n```\r\n<?php\r\n\r\nnamespace Company\\DwehBundle\\Controller;\r\n\r\nuse APY\\BreadcrumbTrailBundle\\Annotation\\Breadcrumb;\r\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\r\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\r\n\r\n/**\r\n * @Route(\"/\")\r\n * @Breadcrumb(\"Home\", route={\"name\"=\"company_dweh_default_index\"})\r\n */\r\nclass DefaultController extends Controller\r\n{\r\n    /**\r\n     * @Route(\"\", options={\"sitemap\" =  true })\r\n     */\r\n    public function indexAction()\r\n    {\r\n        return $this->render('CompanyDwehBundle:Default:index.html.twig', array());\r\n    }\r\n}\r\n```\r\n\r\nBut, after clearing the cache, the route doesn't appear in the sitemap:\r\n\r\n```\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n    <sitemapindex xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\r\n    <sitemap>\r\n        <loc>http://dweh.swdev.company.nl/app_dev.php/sitemap.default.xml</loc>\r\n        <lastmod>2016-04-04T16:00:41+02:00</lastmod>\r\n    </sitemap>\r\n</sitemapindex>\r\n```\r\n\r\nI've tried the annotation like this with the same result:\r\n\r\n```\r\n<?php\r\n\r\nnamespace Company\\DwehBundle\\Controller;\r\n\r\nuse APY\\BreadcrumbTrailBundle\\Annotation\\Breadcrumb;\r\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\r\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\r\n\r\n/**\r\n * @Breadcrumb(\"Home\", route={\"name\"=\"company_dweh_default_index\"})\r\n */\r\nclass DefaultController extends Controller\r\n{\r\n    /**\r\n     * @Route(\"/\", name=\"homepage\", options={\"sitemap\" = true})\r\n     */\r\n    public function indexAction()\r\n    {\r\n        return $this->render('CompanyDwehBundle:Default:index.html.twig', array());\r\n    }\r\n}\r\n```\r\n\r\nWhat could I be missing?"},"comment":{"url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/comments/222508899","html_url":"https://github.com/prestaconcept/PrestaSitemapBundle/issues/101#issuecomment-222508899","issue_url":"https://api.github.com/repos/prestaconcept/PrestaSitemapBundle/issues/101","id":222508899,"user":{"login":"v03adk","id":1052998,"avatar_url":"https://avatars.githubusercontent.com/u/1052998?v=3","gravatar_id":"","url":"https://api.github.com/users/v03adk","html_url":"https://github.com/v03adk","followers_url":"https://api.github.com/users/v03adk/followers","following_url":"https://api.github.com/users/v03adk/following{/other_user}","gists_url":"https://api.github.com/users/v03adk/gists{/gist_id}","starred_url":"https://api.github.com/users/v03adk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v03adk/subscriptions","organizations_url":"https://api.github.com/users/v03adk/orgs","repos_url":"https://api.github.com/users/v03adk/repos","events_url":"https://api.github.com/users/v03adk/events{/privacy}","received_events_url":"https://api.github.com/users/v03adk/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T14:53:54Z","updated_at":"2016-05-30T14:53:54Z","body":"the same here. @Mondane did you solve the problem?"}}
{"actor":{"display_login":"v03adk"}}