engelsystem/src/Helpers/AssetsServiceProvider.php

16 lines
322 B
PHP
Raw Normal View History

<?php
namespace Engelsystem\Helpers;
use Engelsystem\Container\ServiceProvider;
class AssetsServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->when(Assets::class)
->needs('$assetsPath')
->give($this->app->get('path.assets.public'));
}
}