@@ -267,7 +267,7 @@ |
||
| 267 | 267 | * Shortcut method to access POST/request parameters. |
| 268 | 268 | * |
| 269 | 269 | * @param string $key |
| 270 | - * @param mixed $default |
|
| 270 | + * @param null|string $default |
|
| 271 | 271 | * @return string|array |
| 272 | 272 | */ |
| 273 | 273 | protected function post(string $key = null, string $default = null) |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Starlit\App; |
| 10 | 10 | |
| 11 | +use Starlit\Utils\Str; |
|
| 12 | +use Starlit\Utils\Url; |
|
| 11 | 13 | use Symfony\Component\HttpFoundation\Request; |
| 12 | 14 | use Symfony\Component\HttpFoundation\Response; |
| 13 | 15 | use Symfony\Component\Routing; |
| 14 | -use Starlit\Utils\Str; |
|
| 15 | -use Starlit\Utils\Url; |
|
| 16 | 16 | |
| 17 | 17 | abstract class AbstractController |
| 18 | 18 | { |
@@ -10,12 +10,12 @@ |
||
| 10 | 10 | |
| 11 | 11 | use Starlit\App\Container\Container; |
| 12 | 12 | use Starlit\App\Provider\BootableServiceProviderInterface; |
| 13 | +use Starlit\App\Provider\ErrorServiceProvider; |
|
| 14 | +use Starlit\App\Provider\ServiceProviderInterface; |
|
| 15 | +use Starlit\App\Provider\StandardServiceProvider; |
|
| 13 | 16 | use Symfony\Component\HttpFoundation\Request; |
| 14 | 17 | use Symfony\Component\HttpFoundation\Response; |
| 15 | 18 | use Symfony\Component\Routing\Exception\ResourceNotFoundException; |
| 16 | -use Starlit\App\Provider\ServiceProviderInterface; |
|
| 17 | -use Starlit\App\Provider\StandardServiceProvider; |
|
| 18 | -use Starlit\App\Provider\ErrorServiceProvider; |
|
| 19 | 19 | |
| 20 | 20 | class BaseApp extends Container |
| 21 | 21 | { |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Starlit\App; |
| 10 | 10 | |
| 11 | +use Starlit\App\ViewHelper\AbstractViewHelper; |
|
| 11 | 12 | use Starlit\App\ViewHelper\Capturer; |
| 12 | 13 | use Starlit\App\ViewHelper\InlineScriptCapturer; |
| 13 | 14 | use Starlit\App\ViewHelper\MustacheTmplCapturer; |
| 14 | 15 | use Starlit\App\ViewHelper\Pagination; |
| 15 | 16 | use Starlit\App\ViewHelper\Url; |
| 16 | 17 | use Symfony\Component\HttpFoundation\Request; |
| 17 | -use Starlit\App\ViewHelper\AbstractViewHelper; |
|
| 18 | 18 | |
| 19 | 19 | class View implements ViewInterface |
| 20 | 20 | { |