20 lines
478 B
PHP
20 lines
478 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Engelsystem\Middleware;
|
|
|
|
use Engelsystem\Container\ServiceProvider;
|
|
|
|
class RequestHandlerServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
/** @var RequestHandler $requestHandler */
|
|
$requestHandler = $this->app->make(RequestHandler::class);
|
|
|
|
$this->app->instance('request.handler', $requestHandler);
|
|
$this->app->bind(RequestHandler::class, 'request.handler');
|
|
}
|
|
}
|