framework/views
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
..
emails Improvements to change/forgot password 2015-05-27 16:25:44 +09:30
install Prevent XML from being interpreted as PHP short tags 2015-09-14 18:12:36 +09:30
admin.blade.php Get admin area working again 2015-07-29 20:58:22 +09:30
app.blade.php Fix last commit 2015-09-23 18:30:28 +02:00
content.blade.php Build very rough HTML-only content 2015-08-06 12:21:11 +09:30
discussion.blade.php Build very rough HTML-only content 2015-08-06 12:21:11 +09:30
forum.blade.php Build very rough HTML-only content 2015-08-06 12:21:11 +09:30
index.blade.php Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30
reset.blade.php Add multiple UrlGenerator classes for forum/api/admin 2015-10-02 17:35:29 +09:30