Failed Conditions
Push — experimental/3.1 ( 243c6b...0c67c0 )
by Yangsin
65:47
created

autoload.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
// システム要件チェック
4
if (version_compare(PHP_VERSION, '5.3.9') < 0) {
5
    die('Your PHP installation is too old. EC-CUBE requires at least PHP 5.3.9. See the <a href="http://www.ec-cube.net/product/system.php">system requirements</a> page for more information.');
6
}
7
8
if (extension_loaded('wincache')) {
9
    if (!ini_get('opcache.enable')) {
10
        ini_set('wincache.ocenabled', 1);
11
    }
12
    ini_set('wincache.fcenabled', 1);
13
}
14
15
$autoload = __DIR__.'/vendor/autoload.php';
16
17
if (file_exists($autoload) && is_readable($autoload)) {
18
    $loader = require $autoload;
19
    \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
20
} else {
21
    die('Composer is not installed.');
22
}
23
24
// autoloader cache
25
if (extension_loaded('apc') && ini_get('apc.enabled')) {
26
    $apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\ClassLoader\ApcClassLoader has been deprecated with message: since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
27
    $apcLoader->register();
28
    $loader->unregister();
29
} elseif (extension_loaded('wincache') && ini_get('wincache.fcenabled')) {
30
    $winCacheLoader = new Symfony\Component\ClassLoader\WinCacheClassLoader(sha1(__FILE__), $loader);
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\ClassLoader\WinCacheClassLoader has been deprecated with message: since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
31
    $winCacheLoader->register();
32
    $loader->unregister();
33
}
34
35
define("RELATIVE_PUBLIC_DIR_PATH", '/html');
36
37
return $loader;
38