You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
29 lines
884 B
PHP
29 lines
884 B
PHP
<?php
|
|
|
|
namespace Flasher\Notyf\Laravel\ServiceProvider\Providers;
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Flasher\Notyf\Laravel\NotifyNotyfServiceProvider;
|
|
|
|
final class Laravel4 extends Laravel
|
|
{
|
|
public function shouldBeUsed()
|
|
{
|
|
return $this->app instanceof Application && 0 === strpos(Application::VERSION, '4.');
|
|
}
|
|
|
|
public function publishConfig(NotifyNotyfServiceProvider $provider)
|
|
{
|
|
$provider->package('php-flasher/flasher-laravel-notyf', 'notify_notyf', __DIR__.'/../../../resources');
|
|
}
|
|
|
|
public function mergeConfigFromNotyf()
|
|
{
|
|
$notifyConfig = $this->app['config']->get('notify::config.adapters.notyf', array());
|
|
|
|
$notyfConfig = $this->app['config']->get('notify_notyf::config', array());
|
|
|
|
$this->app['config']->set('notify::config.adapters.notyf', array_merge($notyfConfig, $notifyConfig));
|
|
}
|
|
}
|