Skip to content

Instantly share code, notes, and snippets.

@nonlocalize
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nonlocalize/5b914c27895b40137232 to your computer and use it in GitHub Desktop.
Save nonlocalize/5b914c27895b40137232 to your computer and use it in GitHub Desktop.
<?php
use YourProject\Services\Mailers\UserMailer;
class UsersController extends BaseController
{
protected $mail;
function __construct(UserMailer $mail)
{
$this->mail = $mail;
}
public function upgrade()
{
$this->mail->upgrade();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment