Skip to content

Instantly share code, notes, and snippets.

@oaltman
Created February 16, 2014 10:54
Show Gist options
  • Save oaltman/9032456 to your computer and use it in GitHub Desktop.
Save oaltman/9032456 to your computer and use it in GitHub Desktop.
nette:
mailer:
smtp:
email: smtp.live.com
username: user
password: heslo
port: 587
secure: tls
services:
- \App\model\services\EmailApplicant(@nette.mailer)
nette.mailer:
class: Nette\Mail\SmtpMailer
class EmailApplicant extends Object
{
/**
* @var \Nette\Mail\SmtpMailer
*/
private $mailer;
public function __construct(SmtpMailer $mailer)
{
$this->mailer = $mailer;
Debugger::barDump($mailer);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment