framework/src
Toby Zerner f255d318ef Add multiple UrlGenerator classes for forum/api/admin
Spent quite a while looking into the best solution here and ended up going with three separate classes. Thanks to @Luceos for the PR that got this rolling (#518). My reasoning is:

- The task of routing and URL generation is independent for each section of the app. Take Flarum\Api\Users\IndexAction for example. I don't want to generate a URL to a Flarum route... I specifically want to generate a URL to an API route. So there should be a class with that specific responsibility.
- In fact, each URL generator is slightly different, because we need to add a certain prefix to the start (e.g. /api)
- This also allows us to get rid of the "flarum.api" prefix on each route's name.
- It's still DRY, because they all extend a base class.

At the same time, I could see no reason this needed to be "interfaced", so all of the classes are concrete.

Goes a long way to fixing #123 - still just a few places left remaining with hardcoded URLs.
2015-10-02 17:35:29 +09:30
..
Admin Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
Api Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
Assets Add API to set asset compiler filename 2015-09-15 21:20:32 +09:30
Console Remove importer for the time being 2015-09-22 17:14:01 +09:30
Core Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
Events Allow discussions to be hidden and restored 2015-09-22 17:48:21 +09:30
Forum Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
Http Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
Install Changed default Admin password 2015-09-15 17:52:33 +02:00
Locale Extract English translations into a language pack 2015-09-25 16:12:09 +09:30
Migrations Allow settings to be deleted using LIKE 2015-09-18 13:28:38 +09:30
Support Extract English translations into a language pack 2015-09-25 16:12:09 +09:30
Core.php Coding standards 2015-08-27 01:40:18 +02:00
helpers.php Add header comment; PSR-2 fixes; remove seeders 2015-08-26 16:56:32 +09:30