Skip to content
Permalink
Browse files

[boostrap] Enabled the uri base path (#4064)

* [update:execute] Fixed update table

* [boostrap] Enabled the uri base path
  • Loading branch information...
harold20 authored and enzolutions committed May 28, 2019
1 parent 047c18b commit 96850801ccf6a86da7dcca416b12d2454c814a43
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/Bootstrap/Drupal.php
@@ -92,9 +92,20 @@ public function boot()
$io->writeln('➤ Creating request');
}
$parsed_url = parse_url($uri);
if($parsed_url['scheme'] == 'https') {
$_SERVER['HTTPS'] = 'on';
}
$path = '/';
if(isset($parsed_url['path'])) {
$path = $parsed_url['path'] . $path;
}
$_SERVER['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST);
$_SERVER['SERVER_PORT'] = null;
$_SERVER['REQUEST_URI'] = '/';
$_SERVER['REQUEST_URI'] = $path;
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['SERVER_SOFTWARE'] = null;

0 comments on commit 9685080

Please sign in to comment.
You can’t perform that action at this time.