Ticket #303 (closed defect: fixed)
apostrophePlugin's routing.yml is interfering with non-Apostrophe apps, should register via PHP
| Reported by: | boutell | Owned by: | boutell |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | apostrophePlugin | Version: | 1.0 |
| Keywords: | routing | Cc: | |
| Symfony version: | 1.4 |
Description
OK, I see it now.
There is an engine route in our routing.yml (a_admin). Engine routes check for an engine page that matches the URL. This requires generating a URL for that page in order to test it... which requires an a_page route.
If you allow Apostrophe to register the rest of its routes by leaving app_a_routes_register set to true in this application's app.yml, you'll have an a_page route that hides the CMS pages (if any) under /cms, and the a_admin route request will be satisfied that it doesn't match, and your application can go on its merry way.
Do you have app_a_routes_register overridden to false in the app.yml of this application?
I will open a ticket to minimize the impact of Apostrophe on applications that aren't using it by registering all of its routes via Symfony events, not a plugin-level routing.yml file. Then you could set app_a_routes_register to false, choose not to provide an a_page route, and get no errors. For now the workaround is to set it to true, or provide your own a_page route pointing someplace.

