Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Https.php
Go to the documentation of this file.
1 <?php
9 
14 class Https extends Http
15 {
21  protected $scheme = 'https';
22 
29  protected function parseUrl($path)
30  {
31  $urlProp = parent::parseUrl($path);
32 
33  if (!isset($urlProp['port'])) {
34  $urlProp['port'] = 443;
35  }
36 
37  return $urlProp;
38  }
39 
47  protected function open($hostname, $port)
48  {
49  return parent::open('ssl://' . $hostname, $port);
50  }
51 }