mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
34 lines
663 B
PHP
34 lines
663 B
PHP
<?php namespace Flarum\Api;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ApiServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application events.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->app->singleton(
|
|
'Illuminate\Contracts\Debug\ExceptionHandler',
|
|
'Flarum\Api\ExceptionHandler'
|
|
);
|
|
|
|
$this->app->singleton('Flarum\Http\Router');
|
|
|
|
include __DIR__.'/routes.php';
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->singleton('Flarum\Support\Actor');
|
|
}
|
|
}
|