File tree Expand file tree Collapse file tree 8 files changed +253
-9
lines changed Expand file tree Collapse file tree 8 files changed +253
-9
lines changed Original file line number Diff line number Diff line change 11# Cherry-Console Changelog
22
3- ## [ v1.0.0] ( https://github.com/cherry-framework/logs-viewer/releases/tag/v1.0.0 " v1.0.0 ") (2019-04-8)
3+ ## [ v1.5.0] ( https://github.com/cherry-framework/console/releases/tag/v1.5.0 " v1.5.0 ") (2019-04-21)
4+
5+ - Use color constants for output color definition;
6+ - Use Cherry Kernel;
7+ - Define Development Server Web Path from Config file;
8+
9+ ## [ v1.0.0] ( https://github.com/cherry-framework/console/releases/tag/v1.0.0 " v1.0.0 ") (2019-04-08)
410#### The first stable version
511
612- Package available on: ` composer require cherry-project/console `
713- Output text styling
814- Available commands:
915
1016 - server - Run PHP Development server
11-
Original file line number Diff line number Diff line change @@ -25,14 +25,17 @@ require_once __DIR__ . '/vendor/autoload.php';
2525
2626## Usage
2727
28- Import class
28+ Import classes
2929
3030``` php
3131use Cherry\Console\Console;
32+ use Cherry\Kernel;
3233```
3334
34- Create new console instance
35+ Create new Kernel and Console instance
3536``` php
37+ $app = new Kernel(__DIR__);
38+
3639$console = new Console();
3740```
3841
Original file line number Diff line number Diff line change 1515 ],
1616 "minimum-stability" : " dev" ,
1717 "require" : {
18- "php" : " >=5.6.0"
18+ "php" : " >=5.6.0" ,
19+ "cherry-project/core" : " ^1.5"
1920 },
2021 "autoload" : {
2122 "psr-4" : {
Original file line number Diff line number Diff line change 1+ {
2+ "ROUTES_FILE" : " " ,
3+ "CONTROLLERS_PATH" : " " ,
4+ "TEMPLATES_PATH" : " " ,
5+ "LOGS_PATH" : " " ,
6+ "WEB_ROOT" : " /"
7+ }
Original file line number Diff line number Diff line change 44require __DIR__ . '/../vendor/autoload.php ' ;
55
66use Cherry \Console \Console ;
7+ use Cherry \Kernel ;
8+
9+ $ app = new Kernel (__DIR__ );
710
811$ console = new Console ();
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ echo "Hello, World! " ;
Original file line number Diff line number Diff line change @@ -155,6 +155,6 @@ private function _server()
155155 print $ this ->_output
156156 ->text ($ info );
157157
158- echo exec ("php -S {$ server } -t " . dirname ( dirname ( __DIR__ )) );
158+ echo exec ("php -S {$ server } -t " . WEB_ROOT );
159159 }
160- }
160+ }
You can’t perform that action at this time.
0 commit comments