Permalink
Browse files

Merge pull request #11 from wjzijderveld/master

Compiler bugfix
  • Loading branch information...
2 parents fe1101e + 78362ce commit c9db6dcf69ea9bc11e6bd2f25459075cafc5a305 @mvriel mvriel committed May 27, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/Cilex/Compiler.php
@@ -64,11 +64,12 @@ public function compile($pharFile = 'cilex.phar')
}
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../LICENSE'), false);
- $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/autoload.php'));
- $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/ClassLoader.php'));
- $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/autoload_namespaces.php'));
- $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/autoload_classmap.php'));
+ $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/autoload.php'));
+ $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/ClassLoader.php'));
+ $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_namespaces.php'));
+ $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_classmap.php'));
+
// Stubs
$phar->setStub($this->getStub());
@@ -110,7 +111,7 @@ protected function getStub()
Phar::mapPhar('cilex.phar');
-require_once 'phar://cilex.phar/vendor/.composer/autoload.php';
+require_once 'phar://cilex.phar/vendor/autoload.php';
if ('cli' === php_sapi_name() && basename(__FILE__) === basename($_SERVER['argv'][0]) && isset($_SERVER['argv'][1])) {
switch ($_SERVER['argv'][1]) {

0 comments on commit c9db6dc

Please sign in to comment.