Skip to content

Commit

Permalink
Auto-set template name based on action
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Jun 25, 2015
1 parent e99091f commit 58275ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mailer/Mailer.php
Expand Up @@ -226,6 +226,10 @@ public function send($action, $args = [], $headers = [])

call_user_func_array([$this, $action], $args);

if (empty($this->template)) {
$this->template = $action;
}

$result = $this->_email
->profile((array)$this)
->send();
Expand Down

0 comments on commit 58275ff

Please sign in to comment.