@@ 44-46 (lines=3) @@ | ||
41 | if (isset($configuration['ssl'])) { |
|
42 | $origin = 'https://' . $configuration['hostname']; |
|
43 | ||
44 | if ($configuration['ssl']['port'] !== 443) { |
|
45 | $origin .= ':' . $configuration['ssl']['port']; |
|
46 | } |
|
47 | } else { |
|
48 | $origin = 'http://' . $configuration['hostname']; |
|
49 | ||
@@ 50-52 (lines=3) @@ | ||
47 | } else { |
|
48 | $origin = 'http://' . $configuration['hostname']; |
|
49 | ||
50 | if ($configuration['expose']['port'] !== 80) { |
|
51 | $origin .= ':' . $configuration['expose']['port']; |
|
52 | } |
|
53 | } |
|
54 | ||
55 | $injector->define(Handler::class, [ |