Commit 49212fcb authored by Christophe Coevoet's avatar Christophe Coevoet

Updated the compiler for the new Composer file location

parent c3fd3464
#!/usr/bin/env php
<?php
require_once __DIR__.'/vendor/.composer/autoload.php';
require_once __DIR__.'/vendor/autoload.php';
use Silex\Compiler;
......
......@@ -69,10 +69,10 @@ class Compiler
}
$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/ClassLoader.php'));
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/autoload_namespaces.php'));
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/autoload_classmap.php'));
// Stubs
$phar->setStub($this->getStub());
......@@ -112,7 +112,7 @@ class Compiler
Phar::mapPhar('silex.phar');
require_once 'phar://silex.phar/vendor/.composer/autoload.php';
require_once 'phar://silex.phar/vendor/autoload.php';
if ('cli' === php_sapi_name() && basename(__FILE__) === basename($_SERVER['argv'][0]) && isset($_SERVER['argv'][1])) {
switch ($_SERVER['argv'][1]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment