Files
php-flasher/ServiceProvider/Providers/Lumen.php
T
2020-12-06 19:16:55 +01:00

24 lines
582 B
PHP

<?php
namespace Flasher\Toastr\Laravel\ServiceProvider\Providers;
use Flasher\Toastr\Laravel\FlasherToastrServiceProvider;
use Laravel\Lumen\Application;
final class Lumen extends Laravel
{
public function shouldBeUsed()
{
return $this->app instanceof Application;
}
public function publishConfig(FlasherToastrServiceProvider $provider)
{
$source = realpath($raw = __DIR__.'/../../Resources/config/config.php') ?: $raw;
$this->app->configure('flasher_toastr');
$provider->mergeConfigFrom($source, 'flasher_toastr');
}
}