File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ include 'scss.inc.php';
77
88use Leafo \ScssPhp \Compiler ;
99use Leafo \ScssPhp \Parser ;
10+ use Leafo \ScssPhp \Version ;
1011
1112$ opts = getopt ('hvTf: ' , array ('help ' , 'version ' ));
1213
4041}
4142
4243if (has ("v " , "version " )) {
43- exit (Compiler:: $ VERSION . "\n" );
44+ exit (Version:: VERSION . "\n" );
4445}
4546
4647$ data = "" ;
Original file line number Diff line number Diff line change 77include_once __DIR__ . '/src/Formatter/Expanded.php ' ;
88include_once __DIR__ . '/src/Formatter/Nested.php ' ;
99include_once __DIR__ . '/src/Parser.php ' ;
10+ include_once __DIR__ . '/src/Version.php ' ;
1011include_once __DIR__ . '/src/Server.php ' ;
1112include_once __DIR__ . '/classmap.php ' ;
Original file line number Diff line number Diff line change 4949 */
5050class Compiler
5151{
52- static public $ VERSION = 'v0.1.1 ' ;
53-
5452 static protected $ operatorNames = array (
5553 '+ ' => 'add ' ,
5654 '- ' => 'sub ' ,
Original file line number Diff line number Diff line change 1313namespace Leafo \ScssPhp ;
1414
1515use Leafo \ScssPhp \Compiler ;
16+ use Leafo \ScssPhp \Version ;
1617
1718/**
1819 * SCSS server
@@ -186,7 +187,7 @@ protected function compile($in, $out)
186187 $ css = $ this ->scss ->compile (file_get_contents ($ in ), $ in );
187188 $ elapsed = round ((microtime (true ) - $ start ), 4 );
188189
189- $ v = Compiler:: $ VERSION ;
190+ $ v = Version:: VERSION ;
190191 $ t = @date ('r ' );
191192 $ css = "/* compiled by scssphp $ v on $ t ( $ {elapsed}s) */ \n\n" . $ css ;
192193 $ etag = md5 ($ css );
@@ -313,7 +314,7 @@ public function serve($salt = '')
313314 header ($ protocol . ' 404 Not Found ' );
314315 header ('Content-type: text/plain ' );
315316
316- $ v = Compiler:: $ VERSION ;
317+ $ v = Version:: VERSION ;
317318 echo "/* INPUT NOT FOUND scss $ v */ \n" ;
318319 }
319320
You can’t perform that action at this time.
0 commit comments