Fix deepclone, generation and file loading bugs
This commit is contained in:
gecommit door
Stéphane Goetz
bovenliggende
d25a001325
commit
38e939c848
@ -105,13 +105,14 @@ class Compiler
|
||||
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_files.php'));
|
||||
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_namespaces.php'));
|
||||
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_real.php'));
|
||||
$staticAutoload = new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_static.php');
|
||||
if ($staticAutoload->isFile()) {
|
||||
$this->addFile($phar, $staticAutoload);
|
||||
}
|
||||
|
||||
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/ClassLoader.php'));
|
||||
|
||||
if (file_exists(__DIR__ . '/../vendor/composer/autoload_static.php')) {
|
||||
$content = file_get_contents(__DIR__ . '/../vendor/composer/autoload_static.php');
|
||||
$content = str_replace('__DIR__ . \'/../..\' . \'/daux\'', 'PHAR_DIR . \'/daux\'', $content);
|
||||
$phar->addFromString('vendor/composer/autoload_static.php', $content);
|
||||
}
|
||||
|
||||
$content = file_get_contents(__DIR__ . '/../vendor/composer/autoload_psr4.php');
|
||||
$content = str_replace('$baseDir . \'/daux\'', 'PHAR_DIR . \'/daux\'', $content);
|
||||
$phar->addFromString('vendor/composer/autoload_psr4.php', $content);
|
||||
|
Verwijs in nieuw issue
Block a user