Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12741714
MailgunServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
767 B
Referenced Files
None
Subscribers
None
MailgunServiceProvider.php
View Options
<?php
namespace
Nasqueron\Notifications\Providers
;
use
Illuminate\Contracts\Foundation\Application
;
use
Illuminate\Support\ServiceProvider
;
use
GuzzleHttp\Client
;
use
Keruald\Mailgun\MailgunMessageFactory
;
class
MailgunServiceProvider
extends
ServiceProvider
{
/**
* Bootstraps the application services.
*
* @return void
*/
public
function
boot
()
{
}
/**
* Registers the application services.
*
* @return void
*/
public
function
register
()
{
$this
->
app
->
singleton
(
'mailgun'
,
function
(
Application
$app
)
{
$config
=
$app
->
make
(
'config'
);
$key
=
$config
->
get
(
'services.mailgun.secret'
);
return
new
MailgunMessageFactory
(
new
Client
,
$key
);
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 16, 13:31 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3139230
Default Alt Text
MailgunServiceProvider.php (767 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment