Created
May 8, 2018 01:01
-
-
Save sdevore/84f9fb9ec839a27bf152ce9edc5bb2ac 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
<?php | |
namespace App\Mailer\Preview; | |
use Cake\Core\Configure; | |
use Cake\ORM\Locator\LocatorAwareTrait; | |
use DebugKit\Mailer\MailPreview; | |
class UsersMailPreview extends MailPreview | |
{ | |
use LocatorAwareTrait; | |
public function validation() | |
{ | |
$users = $this->getTableLocator()->get('Users'); | |
$user = $users->find()->first(); | |
return $this->getMailer("Users") | |
->validation($user); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment