mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 23:17:47 +01:00
64 lines
1.3 KiB
PHP
64 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Flasher\Pnotify\Laravel;
|
|
|
|
use Illuminate\Contracts\Support\DeferrableProvider;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Flasher\Pnotify\Laravel\ServiceProvider\ServiceProviderManager;
|
|
|
|
class NotifyPnotifyServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot()
|
|
{
|
|
$manager = new ServiceProviderManager($this);
|
|
$manager->boot();
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*/
|
|
public function register()
|
|
{
|
|
$manager = new ServiceProviderManager($this);
|
|
$manager->register();
|
|
}
|
|
|
|
/**
|
|
* Get the services provided by the provider.
|
|
*
|
|
* @return string[]
|
|
*/
|
|
public function provides()
|
|
{
|
|
return array(
|
|
'notify.producer',
|
|
'notify.producer.pnotify',
|
|
'notify.renderer.pnotify',
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Container\Container
|
|
*/
|
|
public function getApplication()
|
|
{
|
|
return $this->app;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function mergeConfigFrom($path, $key)
|
|
{
|
|
parent::mergeConfigFrom($path, $key);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function publishes(array $paths, $groups = null)
|
|
{
|
|
parent::publishes($paths, $groups);
|
|
}
|
|
}
|