@@ -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 | /** |
| 18 | 18 | * Base action controller. |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | * Get new instance of a DIC object. |
| 258 | 258 | * |
| 259 | 259 | * @param string $key |
| 260 | - * @return mixed |
|
| 260 | + * @return null|\Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface |
|
| 261 | 261 | */ |
| 262 | 262 | public function getNew($key) |
| 263 | 263 | { |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Starlit\App; |
| 10 | 10 | |
| 11 | +use Starlit\App\Provider\ErrorServiceProvider; |
|
| 12 | +use Starlit\App\Provider\ServiceProviderInterface; |
|
| 13 | +use Starlit\App\Provider\StandardServiceProvider; |
|
| 11 | 14 | use Symfony\Component\HttpFoundation\Request; |
| 12 | 15 | use Symfony\Component\HttpFoundation\Response; |
| 13 | -use Symfony\Component\Routing\Exception\ResourceNotFoundException; |
|
| 14 | 16 | use Symfony\Component\HttpFoundation\Session\Session; |
| 15 | -use Starlit\App\Provider\ServiceProviderInterface; |
|
| 16 | -use Starlit\App\Provider\StandardServiceProvider; |
|
| 17 | -use Starlit\App\Provider\ErrorServiceProvider; |
|
| 17 | +use Symfony\Component\Routing\Exception\ResourceNotFoundException; |
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | /** |
| 150 | 150 | * Get routes collection. |
| 151 | 151 | * |
| 152 | - * @return RouteCollection|Route[] |
|
| 152 | + * @return RouteCollection |
|
| 153 | 153 | */ |
| 154 | 154 | public function getRoutes() |
| 155 | 155 | { |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Starlit\App; |
| 10 | 10 | |
| 11 | +use Starlit\Utils\Str; |
|
| 11 | 12 | use Symfony\Component\HttpFoundation\Request; |
| 13 | +use Symfony\Component\Routing\Exception\ResourceNotFoundException; |
|
| 14 | +use Symfony\Component\Routing\Matcher\UrlMatcher; |
|
| 15 | +use Symfony\Component\Routing\RequestContext; |
|
| 12 | 16 | use Symfony\Component\Routing\Route; |
| 13 | 17 | use Symfony\Component\Routing\RouteCollection; |
| 14 | -use Symfony\Component\Routing\RequestContext; |
|
| 15 | -use Symfony\Component\Routing\Matcher\UrlMatcher; |
|
| 16 | -use Symfony\Component\Routing\Exception\ResourceNotFoundException; |
|
| 17 | -use Starlit\Utils\Str; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Class for routing URL request to controllers. |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Starlit\App; |
| 10 | 10 | |
| 11 | -use Symfony\Component\HttpFoundation\Request; |
|
| 12 | 11 | use Starlit\App\ViewHelper\AbstractViewHelper; |
| 12 | +use Symfony\Component\HttpFoundation\Request; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Class for rendering view content. |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @param int $rowsPerPage |
| 25 | 25 | * @param int $totalRowCount |
| 26 | 26 | * @param array $options |
| 27 | - * @return Paginator |
|
| 27 | + * @return string |
|
| 28 | 28 | */ |
| 29 | 29 | public function __invoke($currentPageNo, $rowsPerPage, $totalRowCount, array $options = []) |
| 30 | 30 | { |