summaryrefslogtreecommitdiff
path: root/src/Http/ResponseServiceProvider.php
blob: c1489f068aac287f4e7d689f902ee1b903df3951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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);
    }
}