protected function _create($class, $alias, $config)
    {
        $instance = null;

        if (is_object($class)) {
            $instance = $class;
        }

        if (!$instance) {
            $instance = new $class($config);
        }

        if ($instance instanceof AbstractTransport) {
            return $instance;
        }

        throw new RuntimeException(
            'Mailer transports must use Cake\Mailer\AbstractTransport as a base class.'
        );
    }
protected function _create($class, $alias, $config)
    {
        $instance = null;

        if (is_object($class)) {
            $instance = $class;
        }

        if (!$instance) {
            $instance = new $class($config);
        }

        if ($instance instanceof AbstractTransport) {
            return $instance;
        }

        throw new RuntimeException(
            'Mailer transports must use Cake\Mailer\AbstractTransport as a base class.'
        );
    }
protected function _create ( $ class , $ alias , $ config ) { $ instance = null ; if ( is_object ( $ class ) ) { $ instance = $ class ; } if ( ! $ instance ) { $ instance = new $ class ( $ config ) ; } if ( $ instance instanceof AbstractTransport ) { return $ instance ; } throw new RuntimeException ( 'Mailer transports must use Cake\Mailer\AbstractTransport as a base class.' ) ; }
Create the mailer transport instance.

Part of the template method for Cake\Core\ObjectRegistry::load()

@param string|\Cake\Mailer\AbstractTransport $class The classname or object to make.
@param string $alias The alias of the object.
@param array $config An array of settings to use for the cache engine.
@return \Cake\Mailer\AbstractTransport The constructed transport class.
@throws \RuntimeException when an object doesn't implement the correct interface.
Create the mailer transport instance .