Deleted autoload.php
This commit is contained in:
parent
c3f6c482f3
commit
e44ec12faa
1 changed files with 0 additions and 54 deletions
|
@ -1,54 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NCC Autoloader file v1.0
|
|
||||||
*
|
|
||||||
* This file attempts to autoload all the required files for NCC and
|
|
||||||
* initialize NCC immediately, this file checks for initialization
|
|
||||||
* before proceeding to improve performance.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if(!defined('NCC_INIT'))
|
|
||||||
{
|
|
||||||
$third_party_path = __DIR__ . DIRECTORY_SEPARATOR . 'ThirdParty' . DIRECTORY_SEPARATOR;
|
|
||||||
$target_files = [
|
|
||||||
__DIR__ . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'defuse' . DIRECTORY_SEPARATOR . 'php-encryption' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'nikic' . DIRECTORY_SEPARATOR . 'PhpParser' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-ctype' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-ctype' . DIRECTORY_SEPARATOR . 'bootstrap.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-mbstring' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-mbstring' . DIRECTORY_SEPARATOR . 'bootstrap.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-uuid' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-uuid' . DIRECTORY_SEPARATOR . 'bootstrap.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'Process' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'Uid' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'Filesystem' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'Yaml' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'theseer' . DIRECTORY_SEPARATOR . 'Autoload' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
$third_party_path . 'theseer' . DIRECTORY_SEPARATOR . 'DirectoryScanner' . DIRECTORY_SEPARATOR . 'autoload_spl.php',
|
|
||||||
];
|
|
||||||
|
|
||||||
$init_success = true;
|
|
||||||
foreach($target_files as $file)
|
|
||||||
{
|
|
||||||
if(!file_exists($file))
|
|
||||||
{
|
|
||||||
trigger_error('Cannot find file ' . $file, E_USER_WARNING);
|
|
||||||
$init_success = false;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once($file);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$init_success)
|
|
||||||
{
|
|
||||||
trigger_error('One or more NCC components are missing/failed to load, NCC runtime may not be stable.', E_USER_WARNING);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!\ncc\ncc::initialize())
|
|
||||||
{
|
|
||||||
trigger_error('NCC Failed to initialize', E_USER_WARNING);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue