Commit 9772adaf authored by Igor Wiedler's avatar Igor Wiedler

change back to single stub

parent 33d8ddf8
...@@ -66,8 +66,8 @@ class Compiler ...@@ -66,8 +66,8 @@ class Compiler
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../autoload.php')); $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../autoload.php'));
// Stubs // Stubs
$phar['_cli_stub.php'] = $this->getCliStub(); $phar['_cli_stub.php'] = $this->getStub();
$phar['_web_stub.php'] = $this->getWebStub(); $phar['_web_stub.php'] = $this->getStub();
$phar->setDefaultStub('_cli_stub.php', '_web_stub.php'); $phar->setDefaultStub('_cli_stub.php', '_web_stub.php');
$phar->stopBuffering(); $phar->stopBuffering();
...@@ -90,7 +90,7 @@ class Compiler ...@@ -90,7 +90,7 @@ class Compiler
$phar->addFromString($path, $content); $phar->addFromString($path, $content);
} }
protected function getCliStub() protected function getStub()
{ {
return <<<'EOF' return <<<'EOF'
<?php <?php
...@@ -132,25 +132,6 @@ if ('cli' === php_sapi_name()) { ...@@ -132,25 +132,6 @@ if ('cli' === php_sapi_name()) {
} }
} }
__HALT_COMPILER();
EOF;
}
protected function getWebStub()
{
return <<<EOF
<?php
/*
* This file is part of the Silex framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
require_once __DIR__.'/autoload.php';
__HALT_COMPILER(); __HALT_COMPILER();
EOF; EOF;
} }
......
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