Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10341899
EventServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
784 B
Referenced Files
None
Subscribers
None
EventServiceProvider.php
View Options
<?php
namespace
Nasqueron\Notifications\Providers
;
use
Illuminate\Container\Container
;
use
Illuminate\Contracts\Events\Dispatcher
as
DispatcherContract
;
use
Illuminate\Foundation\Support\Providers\EventServiceProvider
as
ServiceProvider
;
use
Config
;
class
EventServiceProvider
extends
ServiceProvider
{
/**
* Registers all our listeners as subscriber classes
*/
private
function
subscribeListeners
()
{
$this
->
subscribe
+=
Config
::
get
(
'app.listeners'
);
}
/**
* Register any other events for your application.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
public
function
boot
(
DispatcherContract
$events
)
{
$this
->
subscribeListeners
();
parent
::
boot
(
$events
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 2, 21:29 (2 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2779812
Default Alt Text
EventServiceProvider.php (784 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment