mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
6206a200a9
e7ec08fe91
[phpdoc-parser] Add new TokenIterator to preload, to fix removed endline bug (#2466)
57 lines
1.7 KiB
PHP
57 lines
1.7 KiB
PHP
<?php
|
|
|
|
// autoload_real.php @generated by Composer
|
|
|
|
class ComposerAutoloaderInit2409bc16e0d95229edd43fa94252feea
|
|
{
|
|
private static $loader;
|
|
|
|
public static function loadClassLoader($class)
|
|
{
|
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
|
require __DIR__ . '/ClassLoader.php';
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @return \Composer\Autoload\ClassLoader
|
|
*/
|
|
public static function getLoader()
|
|
{
|
|
if (null !== self::$loader) {
|
|
return self::$loader;
|
|
}
|
|
|
|
spl_autoload_register(array('ComposerAutoloaderInit2409bc16e0d95229edd43fa94252feea', 'loadClassLoader'), true, true);
|
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
|
spl_autoload_unregister(array('ComposerAutoloaderInit2409bc16e0d95229edd43fa94252feea', 'loadClassLoader'));
|
|
|
|
require __DIR__ . '/autoload_static.php';
|
|
call_user_func(\Composer\Autoload\ComposerStaticInit2409bc16e0d95229edd43fa94252feea::getInitializer($loader));
|
|
|
|
$loader->setClassMapAuthoritative(true);
|
|
$loader->register(true);
|
|
|
|
$includeFiles = \Composer\Autoload\ComposerStaticInit2409bc16e0d95229edd43fa94252feea::$files;
|
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
|
composerRequire2409bc16e0d95229edd43fa94252feea($fileIdentifier, $file);
|
|
}
|
|
|
|
return $loader;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param string $fileIdentifier
|
|
* @param string $file
|
|
* @return void
|
|
*/
|
|
function composerRequire2409bc16e0d95229edd43fa94252feea($fileIdentifier, $file)
|
|
{
|
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
|
|
|
require $file;
|
|
}
|
|
}
|