Created
February 16, 2014 10:54
-
-
Save oaltman/9032456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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