Skip to content

Commit b221e80

Browse files
author
Willem de Groot
committedJan 19, 2016
Support a symlinked /pub document root
1 parent 8fa30ec commit b221e80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎pub/errors/processorFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Framework\Error;
77

8-
require_once __DIR__ . '/../../app/bootstrap.php';
8+
require_once realpath(__DIR__) . '/../../app/bootstrap.php';
99
require_once 'processor.php';
1010

1111
/**

‎pub/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Framework\App\Filesystem\DirectoryList;
1111

1212
try {
13-
require __DIR__ . '/../app/bootstrap.php';
13+
require realpath(__DIR__) . '/../app/bootstrap.php';
1414
} catch (\Exception $e) {
1515
echo <<<HTML
1616
<div style="font:12px/1.35em arial, helvetica, sans-serif;">

‎pub/static.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* See COPYING.txt for license details.
77
*/
88

9-
require __DIR__ . '/../app/bootstrap.php';
9+
require realpath(__DIR__) . '/../app/bootstrap.php';
1010
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
1111
/** @var \Magento\Framework\App\StaticResource $app */
1212
$app = $bootstrap->createApplication('Magento\Framework\App\StaticResource');

0 commit comments

Comments
 (0)