@@ -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 | { |
@@ -165,6 +165,7 @@ |
||
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | 167 | * Escape a string for output in view script. |
| 168 | + * @param string $string |
|
| 168 | 169 | */ |
| 169 | 170 | public function escape(?string $string, int $flags = \ENT_QUOTES): string |
| 170 | 171 | { |