@@ -57,8 +57,7 @@ discard block |
||
| 57 | 57 | * class ConsoleKernel |
| 58 | 58 | * @package Platine\Framework\Kernel |
| 59 | 59 | */ |
| 60 | -class ConsoleKernel |
|
| 61 | -{ |
|
| 60 | +class ConsoleKernel { |
|
| 62 | 61 | |
| 63 | 62 | protected ConsoleApp $console; |
| 64 | 63 | protected Application $app; |
@@ -80,8 +79,7 @@ discard block |
||
| 80 | 79 | * @param Application $app |
| 81 | 80 | * @param ConsoleApp $console |
| 82 | 81 | */ |
| 83 | - public function __construct(Application $app, ConsoleApp $console) |
|
| 84 | - { |
|
| 82 | + public function __construct(Application $app, ConsoleApp $console) { |
|
| 85 | 83 | $this->app = $app; |
| 86 | 84 | $this->console = $console; |
| 87 | 85 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $this->app->share(Application::class, $this->app); |
| 78 | 78 | $this->app->share('app', $this->app); |
| 79 | - $this->app->share(ConsoleApp::class, function () { |
|
| 79 | + $this->app->share(ConsoleApp::class, function() { |
|
| 80 | 80 | return new ConsoleApp('PLATINE CONSOLE', '1.6.8'); |
| 81 | 81 | }); |
| 82 | 82 | $this->app->bind(ContainerInterface::class, $this->app); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $this->app->bind(RouteCollectionInterface::class, RouteCollection::class); |
| 85 | 85 | $this->app->bind(Router::class); |
| 86 | 86 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
| 87 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 87 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 88 | 88 | return new ResponseEmitter( |
| 89 | 89 | $app->get(Config::class)->get('app.response_chunck_size', null) |
| 90 | 90 | ); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | public function register(): void |
| 72 | 72 | { |
| 73 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 73 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 74 | 74 | return new Configuration($app->get(Config::class)->get('cache', [])); |
| 75 | 75 | }); |
| 76 | 76 | $this->app->bind(AdapterInterface::class, LocalAdapter::class); |
@@ -17,16 +17,14 @@ discard block |
||
| 17 | 17 | * |
| 18 | 18 | * @author tony |
| 19 | 19 | */ |
| 20 | -class ConfigCommand extends Command |
|
| 21 | -{ |
|
| 20 | +class ConfigCommand extends Command { |
|
| 22 | 21 | |
| 23 | 22 | protected Application $application; |
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * |
| 27 | 26 | */ |
| 28 | - public function __construct(Application $application) |
|
| 29 | - { |
|
| 27 | + public function __construct(Application $application) { |
|
| 30 | 28 | parent::__construct('config', 'Command to manage configuration'); |
| 31 | 29 | $this->setAlias('c'); |
| 32 | 30 | |
@@ -36,8 +34,7 @@ discard block |
||
| 36 | 34 | $this->application = $application; |
| 37 | 35 | } |
| 38 | 36 | |
| 39 | - public function execute() |
|
| 40 | - { |
|
| 37 | + public function execute() { |
|
| 41 | 38 | if ($this->getArgumentValue('list')) { |
| 42 | 39 | $this->showConfigList(); |
| 43 | 40 | } |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @author tony |
| 18 | 18 | */ |
| 19 | -class TemplateResponse extends Response |
|
| 20 | -{ |
|
| 19 | +class TemplateResponse extends Response { |
|
| 21 | 20 | |
| 22 | 21 | protected Template $template; |
| 23 | 22 | |