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
912 B
PHP
29 lines
912 B
PHP
<?php
|
|
|
|
namespace Flasher\Pnotify\Laravel\ServiceProvider\Providers;
|
|
|
|
use Flasher\Pnotify\Laravel\FlasherPnotifyServiceProvider;
|
|
use Illuminate\Foundation\Application;
|
|
|
|
final class Laravel4 extends Laravel
|
|
{
|
|
public function shouldBeUsed()
|
|
{
|
|
return $this->app instanceof Application && 0 === strpos(Application::VERSION, '4.');
|
|
}
|
|
|
|
public function publishConfig(FlasherPnotifyServiceProvider $provider)
|
|
{
|
|
$provider->package('php-flasher/flasher-laravel-pnotify', 'notify_pnotify', __DIR__.'/../../Resources');
|
|
}
|
|
|
|
public function mergeConfigFromPnotify()
|
|
{
|
|
$flasherConfig = $this->app['config']->get('flasher::config.adapters.pnotify', array());
|
|
|
|
$pnotifyConfig = $this->app['config']->get('flasher_pnotify::config', array());
|
|
|
|
$this->app['config']->set('flasher::config.adapters.pnotify', array_merge($pnotifyConfig, $flasherConfig));
|
|
}
|
|
}
|