Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ResponseServiceProvider
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Http;
6
7use Engelsystem\Container\ServiceProvider;
8use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
9
10class ResponseServiceProvider extends ServiceProvider
11{
12    public function register(): void
13    {
14        $response = $this->app->make(Response::class);
15        $this->app->instance(Response::class, $response);
16        $this->app->instance(SymfonyResponse::class, $response);
17        $this->app->instance('response', $response);
18    }
19}