Commit f2a5a5b8 authored by Fabien Potencier's avatar Fabien Potencier

removed usage of @package_version@ by the real Silex version

parent 85a1d104
......@@ -47,7 +47,7 @@ use Silex\ControllerResolver;
*/
class Application extends \Pimple implements HttpKernelInterface, EventSubscriberInterface, TerminableInterface
{
const VERSION = '@package_version@';
const VERSION = '1.0-DEV';
private $providers = array();
private $booted = false;
......
......@@ -95,7 +95,7 @@ class Compiler
$content = self::stripWhitespace($content);
}
$content = str_replace('@package_version@', $this->version, $content);
$content = preg_replace("/const VERSION = '.*?';/", "const VERSION = '".$this->version."';", $content);
$phar->addFromString($path, $content);
}
......
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