Skip to content

Commit 8a6e9de

Browse files
committed
[TASK] Use Autoconfigure to declaee RegistrationService public
Refs #1405
1 parent 1ae7f3c commit 8a6e9de

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Classes/Service/RegistrationService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use DERHANSEN\SfEventMgt\Utility\RegistrationResult;
2727
use Psr\EventDispatcher\EventDispatcherInterface;
2828
use Psr\Http\Message\ServerRequestInterface;
29+
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
2930
use TYPO3\CMS\Core\Context\Context;
3031
use TYPO3\CMS\Core\Crypto\HashService;
3132
use TYPO3\CMS\Core\Database\Connection;
@@ -35,6 +36,7 @@
3536
use TYPO3\CMS\Extbase\Mvc\RequestInterface;
3637
use TYPO3\CMS\Extbase\Reflection\ObjectAccess;
3738

39+
#[Autoconfigure(public:true)]
3840
class RegistrationService
3941
{
4042
public function __construct(

Configuration/Services.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ services:
66

77
DERHANSEN\SfEventMgt\:
88
resource: '../Classes/*'
9-
exclude: '../Classes/Domain/Model/*'
10-
11-
DERHANSEN\SfEventMgt\Service\RegistrationService:
12-
public: true
9+
exclude: '../Classes/Domain/Model/*'

0 commit comments

Comments
 (0)