You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
478 B
PHP
18 lines
478 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Http;
|
|
|
|
use Engelsystem\Container\ServiceProvider;
|
|
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
|
|
|
|
class ResponseServiceProvider extends ServiceProvider
|
|
{
|
|
public function register()
|
|
{
|
|
$response = $this->app->make(Response::class);
|
|
$this->app->instance(Response::class, $response);
|
|
$this->app->instance(SymfonyResponse::class, $response);
|
|
$this->app->instance('response', $response);
|
|
}
|
|
}
|