Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
AssetsServiceProvider | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
register | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Helpers; |
6 | |
7 | use Engelsystem\Container\ServiceProvider; |
8 | |
9 | class 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 | } |