MailServiceProvider
class MailServiceProvider extends ServiceProvider (View source)
Properties
protected Application | $app | The application instance. |
from ServiceProvider |
protected bool | $defer | Indicates if loading of the provider is deferred. |
Methods
Register the service provider.
Register the package's component namespaces.
Determine the namespace for a package.
Get the services provided by the provider.
Set a few dependencies on the mailer instance.
Register the Swift Mailer instance.
Register the Swift Transport instance.
Register the SMTP Swift Transport instance.
Register the Sendmail Swift Transport instance.
Register the Mail Swift Transport instance.
Register the Mailgun Swift Transport instance.
Register the Mandrill Swift Transport instance.
Register the "Log" Swift Transport instance.
Details
void
__construct(Application $app)
Create a new service provider instance.
void
boot()
Bootstrap the application events.
void
register()
Register the service provider.
void
package(string $package, string $namespace = null, string $path = null)
Register the package's component namespaces.
string
guessPackagePath()
Guess the package path for the provider.
protected string
getPackageNamespace(string $package, string $namespace)
Determine the namespace for a package.
void
commands(array $commands)
Register the package's custom Artisan commands.
protected string
getAppViewPath(string $package)
Get the application package view path.
array
provides()
Get the services provided by the provider.
array
when()
Get the events that trigger this service provider to register.
bool
isDeferred()
Determine if the provider is deferred.
protected void
setMailerDependencies(Mailer $mailer, Application $app)
Set a few dependencies on the mailer instance.
void
registerSwiftMailer()
Register the Swift Mailer instance.
protected void
registerSwiftTransport(array $config)
Register the Swift Transport instance.
protected void
registerSmtpTransport(array $config)
Register the SMTP Swift Transport instance.
protected void
registerSendmailTransport(array $config)
Register the Sendmail Swift Transport instance.
protected void
registerMailTransport(array $config)
Register the Mail Swift Transport instance.
protected void
registerMailgunTransport(array $config)
Register the Mailgun Swift Transport instance.
protected void
registerMandrillTransport(array $config)
Register the Mandrill Swift Transport instance.
protected void
registerLogTransport(array $config)
Register the "Log" Swift Transport instance.