Files
php-flasher/ServiceProvider/Providers/Lumen.php
T
2020-12-02 00:57:12 +01:00

24 lines
607 B
PHP

<?php
namespace Flasher\SweetAlert\Laravel\ServiceProvider\Providers;
use Laravel\Lumen\Application;
use Flasher\SweetAlert\Laravel\NotifySweetAlertServiceProvider;
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');
}
}