Merge pull request #8982 from kolorafa/patch-1

Can't override CakeEmail class and use deliver
This commit is contained in:
Mark Story 2016-06-13 21:17:22 -04:00 committed by GitHub
commit 9cc515bf9e

View file

@ -1203,7 +1203,7 @@ class CakeEmail {
* @throws SocketException * @throws SocketException
*/ */
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) { public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
$class = __CLASS__; $class = get_called_class();
/** @var CakeEmail $instance */ /** @var CakeEmail $instance */
$instance = new $class($transportConfig); $instance = new $class($transportConfig);
if ($to !== null) { if ($to !== null) {