Files
php-flasher/ServiceProvider/Providers/Lumen.php
T
KHOUBZA Younes 55ec29bd3f update namespace
2020-12-03 09:15:47 +01:00

24 lines
613 B
PHP

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