Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793149
EventServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
748 B
Referenced Files
None
Subscribers
None
EventServiceProvider.php
View Options
<?php
namespace
Nasqueron\Notifications\Providers
;
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
Fri, Feb 28, 21:39 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436719
Default Alt Text
EventServiceProvider.php (748 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment