Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AssetsServiceProvider
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Helpers;
6
7use Engelsystem\Container\ServiceProvider;
8
9class AssetsServiceProvider extends ServiceProvider
10{
11    public function register(): void
12    {
13        $this->app->when(Assets::class)
14            ->needs('$assetsPath')
15            ->give($this->app->get('path.assets.public'));
16    }
17}