Files
php-flasher/ServiceProvider/Providers/Lumen.php
T
Khoubza Younes 2a3dbfd158 fix all tests
2020-12-06 19:33:03 +01:00

24 lines
576 B
PHP

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