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