Update compiler, fixes #386
parent
82dd1c1f7f
commit
5c320238ae
|
@ -56,18 +56,24 @@ class Compiler
|
||||||
->ignoreVCS(true)
|
->ignoreVCS(true)
|
||||||
->name('*.php')
|
->name('*.php')
|
||||||
->notName('Compiler.php')
|
->notName('Compiler.php')
|
||||||
|
->notName('ClassLoader.php')
|
||||||
->in(__DIR__.'/..')
|
->in(__DIR__.'/..')
|
||||||
;
|
;
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
foreach ($finder as $file) {
|
||||||
$this->addFile($phar, $file);
|
$this->addFile($phar, $file);
|
||||||
}
|
}
|
||||||
|
$this->addFile($phar, new \SplFileInfo(__DIR__.'/Autoload/ClassLoader.php'), false);
|
||||||
|
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../res/composer-schema.json'), false);
|
||||||
|
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../res/composer-schema-lax.json'), false);
|
||||||
|
|
||||||
$finder = new Finder();
|
$finder = new Finder();
|
||||||
$finder->files()
|
$finder->files()
|
||||||
->ignoreVCS(true)
|
->ignoreVCS(true)
|
||||||
->name('*.php')
|
->name('*.php')
|
||||||
->in(__DIR__.'/../../vendor/symfony/')
|
->in(__DIR__.'/../../vendor/symfony/')
|
||||||
|
->in(__DIR__.'/../../vendor/seld/jsonlint/src/')
|
||||||
|
->in(__DIR__.'/../../vendor/justinrainbow/json-schema/src/')
|
||||||
;
|
;
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
foreach ($finder as $file) {
|
||||||
|
|
Loading…
Reference in New Issue