Skip to content

Commit 74596bf

Browse files
committed
[TASK] Move DoctrineQueryProxy to Proxy namespace
1 parent 565b22e commit 74596bf

11 files changed

+20
-16
lines changed

Classes/Utility/DispatcherProxy.php renamed to Classes/Proxy/DispatcherProxy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace FluidTYPO3\Vhs\Utility;
2+
namespace FluidTYPO3\Vhs\Proxy;
33

44
/*
55
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.

Classes/Utility/DoctrineQueryProxy.php renamed to Classes/Proxy/DoctrineQueryProxy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace FluidTYPO3\Vhs\Utility;
2+
namespace FluidTYPO3\Vhs\Proxy;
33

44
use Doctrine\DBAL\Driver\ResultStatement;
55
use Doctrine\DBAL\FetchMode;

Classes/ViewHelpers/Condition/Page/IsLanguageViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1212
use TYPO3\CMS\Core\Context\Context;
1313
use TYPO3\CMS\Core\Context\LanguageAspect;
1414
use TYPO3\CMS\Core\Database\Connection;

Classes/ViewHelpers/Content/AbstractContentViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1112
use FluidTYPO3\Vhs\Traits\SlideViewHelperTrait;
1213
use FluidTYPO3\Vhs\Utility\ContentObjectFetcher;
13-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
1414
use TYPO3\CMS\Core\Database\ConnectionPool;
1515
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
1616
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;

Classes/ViewHelpers/Content/InfoViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1112
use FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait;
1213
use FluidTYPO3\Vhs\Utility\ContentObjectFetcher;
13-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
1414
use TYPO3\CMS\Core\Context\Context;
1515
use TYPO3\CMS\Core\Context\LanguageAspect;
1616
use TYPO3\CMS\Core\Database\Connection;

Classes/ViewHelpers/Page/LanguageMenuViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1112
use FluidTYPO3\Vhs\Traits\ArrayConsumingViewHelperTrait;
1213
use FluidTYPO3\Vhs\Traits\TagViewHelperCompatibility;
1314
use FluidTYPO3\Vhs\Utility\ContentObjectFetcher;
1415
use FluidTYPO3\Vhs\Utility\CoreUtility;
15-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
1616
use TYPO3\CMS\Core\Context\Context;
1717
use TYPO3\CMS\Core\Context\LanguageAspect;
1818
use TYPO3\CMS\Core\Database\ConnectionPool;

Classes/ViewHelpers/Render/RequestViewHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DispatcherProxy;
12+
use FluidTYPO3\Vhs\Traits\CompileWithRenderStatic;
1113
use FluidTYPO3\Vhs\Utility\ContentObjectFetcher;
12-
use FluidTYPO3\Vhs\Utility\DispatcherProxy;
1314
use FluidTYPO3\Vhs\Utility\RequestResolver;
1415
use Psr\Http\Message\ServerRequestInterface;
1516
use TYPO3\CMS\Core\Utility\GeneralUtility;
@@ -22,7 +23,6 @@
2223
use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext;
2324
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
2425
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
25-
use FluidTYPO3\Vhs\Traits\CompileWithRenderStatic;
2626

2727
/**
2828
* ### Render: Request

Classes/ViewHelpers/Resource/AbstractResourceViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1112
use FluidTYPO3\Vhs\Traits\TagViewHelperCompatibility;
12-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
1313
use FluidTYPO3\Vhs\Utility\ResourceUtility;
1414
use TYPO3\CMS\Core\Database\Connection;
1515
use TYPO3\CMS\Core\Database\ConnectionPool;

Classes/ViewHelpers/Resource/Record/AbstractRecordResourceViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1112
use FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait;
1213
use FluidTYPO3\Vhs\Utility\ContentObjectFetcher;
13-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
1414
use FluidTYPO3\Vhs\Utility\ErrorUtility;
1515
use TYPO3\CMS\Core\Context\Context;
1616
use TYPO3\CMS\Core\Database\Connection;

Classes/ViewHelpers/Resource/Record/FalViewHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* LICENSE.md file that was distributed with this source code.
99
*/
1010

11-
use FluidTYPO3\Vhs\Utility\DoctrineQueryProxy;
11+
use FluidTYPO3\Vhs\Proxy\DoctrineQueryProxy;
1212
use FluidTYPO3\Vhs\Utility\ResourceUtility;
1313
use TYPO3\CMS\Core\Database\Connection;
1414
use TYPO3\CMS\Core\Database\ConnectionPool;

phpstan-baseline.neon

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ parameters:
44
message: "#^Parameter \\#2 \\$response of method FluidTYPO3\\\\Vhs\\\\Proxy\\\\DispatcherProxy\\:\\:dispatch\\(\\) expects TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Response\\|null, \\(TYPO3\\\\CMS\\\\Core\\\\Http\\\\Response\\&TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Web\\\\Response\\)\\|\\(TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\ResponseInterface\\&TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Web\\\\Response\\)\\|null given\\.$#"
55
count: 1
66
path: Classes/ViewHelpers/Render/RequestViewHelper.php
7+
-
8+
message: "#^Parameter \\#2 \\$response of method FluidTYPO3\\\\Vhs\\\\Proxy\\\\DispatcherProxy\\:\\:dispatch\\(\\) expects TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Response\\|null, \\(TYPO3\\\\CMS\\\\Core\\\\Http\\\\Response\\&TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Web\\\\Response\\)\\|\\(TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\ResponseInterface\\&TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Web\\\\Response\\)\\|null given\\.$#"
9+
count: 1
10+
path: Classes/Proxy/DispatcherProxy.php
711
-
812
message: "#^Method TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Dispatcher\\:\\:dispatch\\(\\) invoked with 2 parameters, 1 required\\.$#"
913
count: 1
@@ -31,7 +35,7 @@ parameters:
3135
-
3236
message: "#^Call to an undefined method TYPO3\\\\CMS\\\\Core\\\\Database\\\\Query\\\\QueryBuilder\\:\\:execute\\(\\)\\.$#"
3337
count: 1
34-
path: Classes/Utility/DoctrineQueryProxy.php
38+
path: Classes/Proxy/DoctrineQueryProxy.php
3539
-
3640
message: "#^Access to undefined constant TYPO3\\\\CMS\\\\Core\\\\Domain\\\\Repository\\\\PageRepository\\:\\:DOKTYPE_RECYCLER\\.$#"
3741
count: 1
@@ -43,11 +47,11 @@ parameters:
4347
-
4448
message: "#Call to an undefined method Doctrine\\\\DBAL\\\\Driver\\\\ResultStatement\\|Doctrine\\\\DBAL\\\\Result\\:\\:fetch\\(\\)\\.$#"
4549
count: 1
46-
path: Classes/Utility/DoctrineQueryProxy.php
50+
path: Classes/Proxy/DoctrineQueryProxy.php
4751
-
4852
message: "#Call to an undefined method Doctrine\\\\DBAL\\\\Driver\\\\ResultStatement\\|Doctrine\\\\DBAL\\\\Result\\:\\:fetchAll\\(\\)\\.$#"
4953
count: 1
50-
path: Classes/Utility/DoctrineQueryProxy.php
54+
path: Classes/Proxy/DoctrineQueryProxy.php
5155
-
5256
message: "#^Access to protected property TYPO3\\\\CMS\\\\Core\\\\Domain\\\\Repository\\\\PageRepository\\:\\:\\$where_groupAccess\\.$#"
5357
count: 1
@@ -79,15 +83,15 @@ parameters:
7983
-
8084
message: "#^Method TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Dispatcher\\:\\:dispatch\\(\\) invoked with 2 parameters, 1 required\\.$#"
8185
count: 1
82-
path: Classes/Utility/DispatcherProxy.php
86+
path: Classes/Proxy/DispatcherProxy.php
8387
-
8488
message: "#^Parameter \\#1 \\$controllerClassName of class TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Request constructor expects string, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
8589
count: 1
8690
path: Classes/ViewHelpers/Render/RequestViewHelper.php
8791
-
8892
message: "#^Parameter \\#2 \\$response of method TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Dispatcher\\:\\:dispatch\\(\\) expects TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\ResponseInterface, TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Response\\|null given\\.$#"
8993
count: 1
90-
path: Classes/Utility/DispatcherProxy.php
94+
path: Classes/Proxy/DispatcherProxy.php
9195
-
9296
message: "#Right side of \\|\\| is always true\\.$#"
9397
count: 1

0 commit comments

Comments
 (0)