Skip to content

Commit ad87c7a

Browse files
committed
[TASK] Change namespace of services from /service/ to /services/
1 parent c6421b9 commit ad87c7a

File tree

11 files changed

+30
-20
lines changed

11 files changed

+30
-20
lines changed

Classes/Command/GeocodeLocationsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Evoweb\StoreFinder\Command;
1717

1818
use Evoweb\StoreFinder\Domain\Repository\LocationRepository;
19-
use Evoweb\StoreFinder\Service\GeocodeService;
19+
use Evoweb\StoreFinder\Services\GeocodeService;
2020
use Exception;
2121
use Symfony\Component\Console\Attribute\AsCommand;
2222
use Symfony\Component\Console\Command\Command;

Classes/Controller/MapController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
use Evoweb\StoreFinder\Domain\Repository\CategoryRepository;
2222
use Evoweb\StoreFinder\Domain\Repository\LocationRepository;
2323
use Evoweb\StoreFinder\Property\TypeConverter\CountryConverter;
24-
use Evoweb\StoreFinder\Service\ModifyValidator;
25-
use Evoweb\StoreFinder\Service\GeocodeService;
24+
use Evoweb\StoreFinder\Services\ModifyValidator;
25+
use Evoweb\StoreFinder\Services\GeocodeService;
2626
use Evoweb\StoreFinder\Validation\Validator\ConstraintValidator;
2727
use Psr\Http\Message\ResponseInterface;
2828
use TYPO3\CMS\Core\Country\CountryProvider;

Classes/Hooks/TceMainListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
namespace Evoweb\StoreFinder\Hooks;
1717

1818
use Evoweb\StoreFinder\Domain\Repository\LocationRepository;
19-
use Evoweb\StoreFinder\Service\CacheService;
20-
use Evoweb\StoreFinder\Service\GeocodeService;
19+
use Evoweb\StoreFinder\Services\CacheService;
20+
use Evoweb\StoreFinder\Services\GeocodeService;
2121
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
2222
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
2323
use TYPO3\CMS\Core\DataHandling\DataHandler;

Classes/Middleware/StoreFinderMiddleware.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use Evoweb\StoreFinder\Domain\Repository\LocationRepository;
2323
use Evoweb\StoreFinder\Middleware\Event\ModifyMiddlewareCategoriesEvent;
2424
use Evoweb\StoreFinder\Middleware\Event\ModifyMiddlewareLocationsEvent;
25-
use Evoweb\StoreFinder\Service\GeocodeService;
25+
use Evoweb\StoreFinder\Services\GeocodeService;
2626
use JsonException;
2727
use Psr\EventDispatcher\EventDispatcherInterface;
2828
use Psr\Http\Message\ResponseInterface;
@@ -58,24 +58,22 @@
5858
final readonly class StoreFinderMiddleware implements MiddlewareInterface
5959
{
6060
public function __construct(
61-
#[Lazy]
62-
private EventDispatcherInterface $eventDispatcher,
63-
#[Lazy]
64-
private CacheManager $cacheManager,
65-
#[Lazy]
66-
private ContentRepository $contentRepository,
67-
#[Lazy]
6861
private FlexFormTools $flexFormTools,
69-
#[Lazy]
7062
private TypoScriptService $typoScriptService,
7163
private FrontendTypoScriptFactory $frontendTypoScriptFactory,
7264
private PageInformationFactory $pageInformationFactory,
7365
#[Autowire(service: 'cache.typoscript')]
7466
private PhpFrontend $typoScriptCache,
7567
#[Lazy]
68+
private EventDispatcherInterface $eventDispatcher,
69+
#[Lazy]
70+
private CacheManager $cacheManager,
71+
#[Lazy]
7672
private CategoryRepository $categoryRepository,
7773
#[Lazy]
7874
private LocationRepository $locationRepository,
75+
#[Lazy]
76+
private ContentRepository $contentRepository,
7977
) {
8078
}
8179

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* LICENSE.txt file that was distributed with this source code.
1414
*/
1515

16-
namespace Evoweb\StoreFinder\Service;
16+
namespace Evoweb\StoreFinder\Services;
1717

1818
use Evoweb\StoreFinder\Domain\Model\Location;
1919
use Exception;

Classes/Service/CountryMissingException.php renamed to Classes/Services/CountryMissingException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* LICENSE.txt file that was distributed with this source code.
1414
*/
1515

16-
namespace Evoweb\StoreFinder\Service;
16+
namespace Evoweb\StoreFinder\Services;
1717

1818
class CountryMissingException extends \Exception
1919
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* LICENSE.txt file that was distributed with this source code.
1414
*/
1515

16-
namespace Evoweb\StoreFinder\Service;
16+
namespace Evoweb\StoreFinder\Services;
1717

1818
use Evoweb\StoreFinder\Cache\CoordinatesCache;
1919
use Evoweb\StoreFinder\Domain\Model\Constraint;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* LICENSE.txt file that was distributed with this source code.
1414
*/
1515

16-
namespace Evoweb\StoreFinder\Service;
16+
namespace Evoweb\StoreFinder\Services;
1717

1818
use Doctrine\Common\Annotations\AnnotationException;
1919
use Doctrine\Common\Annotations\DocParser;

Classes/ViewHelpers/CacheViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Evoweb\StoreFinder\ViewHelpers;
1717

1818
use Evoweb\StoreFinder\Domain\Model\Location;
19-
use Evoweb\StoreFinder\Service\CacheService;
19+
use Evoweb\StoreFinder\Services\CacheService;
2020
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
2121

2222
class CacheViewHelper extends AbstractViewHelper

Documentation/BreakingChanges/Index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
Breaking Changes
77
================
88

9+
04. December 2025
10+
=================
11+
12+
The validation got an overhaul.
13+
14+
The modification it self was moved from the controller to the ModifyValidator service.
15+
16+
Validator namespaced shorthand got dropped in EXT:extbase, that's why only fully qualified
17+
namespaced validator class names are possible. The TypoScript was adapted accordingly.
18+
19+
The services namespaces got changed from \Service\ to \Services\.
20+
921
02. August 2024
1022
===============
1123

0 commit comments

Comments
 (0)