mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
24 lines
579 B
PHP
24 lines
579 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');
|
|
}
|
|
}
|