mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
24 lines
581 B
PHP
24 lines
581 B
PHP
<?php
|
|
|
|
namespace Flasher\Toastr\Laravel\ServiceProvider\Providers;
|
|
|
|
use Laravel\Lumen\Application;
|
|
use Flasher\Toastr\Laravel\NotifyToastrServiceProvider;
|
|
|
|
final class Lumen extends Laravel
|
|
{
|
|
public function shouldBeUsed()
|
|
{
|
|
return $this->app instanceof Application;
|
|
}
|
|
|
|
public function publishConfig(NotifyToastrServiceProvider $provider)
|
|
{
|
|
$source = realpath($raw = __DIR__.'/../../../resources/config/config.php') ?: $raw;
|
|
|
|
$this->app->configure('notify_toastr');
|
|
|
|
$provider->mergeConfigFrom($source, 'notify_toastr');
|
|
}
|
|
}
|