This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (version_compare(phpversion(), '5.5.0', '<') === true) { | |
if (PHP_SAPI == 'cli') { | |
echo 'Magento supports PHP 5.5.0 or later. ' . | |
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html'; | |
} else { | |
echo <<<HTML | |
<div style="font:12px/1.35em arial, helvetica, sans-serif;"> | |
<p>Magento supports PHP 5.5.0 or later. Please read | |
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html"> | |
Magento System Requirements</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once __DIR__ . '/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('BP', dirname(__DIR__)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vendorDir = require BP . '/app/etc/vendor_path.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vendorAutoload = BP . "/{$vendorDir}/autoload.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (file_exists($vendorAutoload)) { | |
$composerAutoloader = include $vendorAutoload; | |
} else { | |
throw new \Exception( | |
'Vendor autoload is not found. Please run \'composer install\' under application root directory.' | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once __DIR__ . '/composer' . '/autoload_real.php'; | |
return ComposerAutoloaderInite017170675962b5ea3eb69708c5ac486::getLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spl_autoload_register(array('ComposerAutoloaderInite017170675962b5ea3eb69708c5ac486', 'loadClassLoader'), true, true); | |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); | |
spl_autoload_unregister(array('ComposerAutoloaderInite017170675962b5ea3eb69708c5ac486', 'loadClassLoader')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$includePaths = require __DIR__ . '/include_paths.php'; | |
// Contents of include_paths.php ... | |
$vendorDir = dirname(dirname(__FILE__)); | |
$baseDir = dirname($vendorDir); | |
return array( | |
$vendorDir . '/magento/zendframework1/library', | |
$vendorDir . '/phpunit/php-file-iterator', | |
$vendorDir . '/phpunit/phpunit', | |
$vendorDir . '/symfony/yaml', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array_push($includePaths, get_include_path()); | |
set_include_path(join(PATH_SEPARATOR, $includePaths)); |