@@ -71,7 +71,7 @@ |
||
| 71 | 71 | public function register(): void |
| 72 | 72 | { |
| 73 | 73 | $this->app->bind(Filesystem::class); |
| 74 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 74 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 75 | 75 | return new Configuration($app->get(Config::class)->get('cache', [])); |
| 76 | 76 | }); |
| 77 | 77 | $this->app->bind(AdapterInterface::class, LocalAdapter::class); |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @author tony |
| 17 | 17 | */ |
| 18 | -class RedirectResponse extends Response |
|
| 19 | -{ |
|
| 18 | +class RedirectResponse extends Response { |
|
| 20 | 19 | |
| 21 | 20 | protected string $url = '/'; |
| 22 | 21 | |
@@ -24,8 +23,7 @@ discard block |
||
| 24 | 23 | * Create new instance |
| 25 | 24 | * @param string $url |
| 26 | 25 | */ |
| 27 | - public function __construct(string $url = '/') |
|
| 28 | - { |
|
| 26 | + public function __construct(string $url = '/') { |
|
| 29 | 27 | parent::__construct(301); |
| 30 | 28 | $this->url = $url; |
| 31 | 29 | } |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $this->template, |
| 77 | 77 | 'login', |
| 78 | 78 | [ |
| 79 | - 'name' => $name |
|
| 79 | + 'name' => $name |
|
| 80 | 80 | ] |
| 81 | 81 | ); |
| 82 | 82 | } |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @author tony |
| 22 | 22 | */ |
| 23 | -class LoginAction implements RequestHandlerInterface |
|
| 24 | -{ |
|
| 23 | +class LoginAction implements RequestHandlerInterface { |
|
| 25 | 24 | |
| 26 | 25 | protected LoggerInterface $logger; |
| 27 | 26 | protected Application $app; |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @author tony |
| 21 | 21 | */ |
| 22 | -class HomeAction implements RequestHandlerInterface |
|
| 23 | -{ |
|
| 22 | +class HomeAction implements RequestHandlerInterface { |
|
| 24 | 23 | |
| 25 | 24 | protected LoggerInterface $logger; |
| 26 | 25 | protected Application $app; |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @author tony |
| 22 | 22 | */ |
| 23 | -class LogoutAction implements RequestHandlerInterface |
|
| 24 | -{ |
|
| 23 | +class LogoutAction implements RequestHandlerInterface { |
|
| 25 | 24 | |
| 26 | 25 | protected LoggerInterface $logger; |
| 27 | 26 | protected Application $app; |