Get a working transport.
Parameters
- bool> $capabilities Optional. Associative array of capabilities to test against, i.e.
[
.<capability>
=> true]
Source
protected static function get_transport(array $capabilities = []) {
$class = self::get_transport_class($capabilities);
if ($class === '') {
throw new Exception('No working transports found', 'notransport', self::$transports);
}
return new $class();
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.