Cms: Order of addons matter, but shouldn't. Affects routing.

Created on 20 Apr 2020  路  5Comments  路  Source: statamic/cms

Bug Description

Addons that come after Statamic alphabetically do not get their CP routes loaded.
The Statamic provider loads the routes, and inside of that it loads any addon's pushed CP routes.
If the addon comes after Statamic, it missed its chance to load the route.

How to Reproduce

Have an addon with a namespace after Statamic, alphabetically.
Attempt to load CP routes.

Environment

Statamic version: 3.0.0-beta.26
PHP version: 7.4

addons bug

Most helpful comment

Thanks for confirming 馃憤

All 5 comments

Just a note from my experience of this issue: it didn't appear to be the namespace for me, rather the vendor name of the package repo itself.

Isn't your vendor in the namespace?

So the vendor name is weremagine, but the namespace I have is Remagine

@jasonvarga I just tested adding an a to the package vendor to aweremagine and that works no problems, so I do believe it's that part that causes the issue.

Thanks for confirming 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

austenc picture austenc  路  3Comments

jelleroorda picture jelleroorda  路  3Comments

billmn picture billmn  路  4Comments

aerni picture aerni  路  4Comments

ReneWeCode picture ReneWeCode  路  3Comments