mirror of
https://github.com/flarum/core.git
synced 2025-08-01 06:00:24 +02:00
Have a go at some error handling
Still not happy with how this is all fitting together. But good enough for now
This commit is contained in:
@@ -12,6 +12,11 @@ class ApiServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->app->singleton(
|
||||
'Illuminate\Contracts\Debug\ExceptionHandler',
|
||||
'Flarum\Api\ExceptionHandler'
|
||||
);
|
||||
|
||||
include __DIR__.'/routes.php';
|
||||
|
||||
BaseSerializer::setActor($this->app['Flarum\Core\Support\Actor']);
|
||||
|
Reference in New Issue
Block a user