|
|
@ -39,7 +39,7 @@ class Compiler |
|
|
|
$phar->startBuffering(); |
|
|
|
$phar->startBuffering(); |
|
|
|
|
|
|
|
|
|
|
|
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::CHILD_FIRST); |
|
|
|
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::CHILD_FIRST); |
|
|
|
/** @var $path \SplFileInfo */ |
|
|
|
/** @var \SplFileInfo $path */ |
|
|
|
foreach ($iterator as $path) { |
|
|
|
foreach ($iterator as $path) { |
|
|
|
if ($path->isFile()) { |
|
|
|
if ($path->isFile()) { |
|
|
|
$phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path)); |
|
|
|
$phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path)); |
|
|
|