Skip to content

Commit

Permalink
[TASK] Use PHP attribute for tagging event listener (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml authored Mar 5, 2024
1 parent 9f5ce28 commit 52e31e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Changed
- Use Configuration/user.tsconfig (#214)
- Add return type to `ModuleController->initializeAction()` (#233)
- Use PHP attribute for tagging event listener (#236)

### Fixed
- Dynamic properties in ModuleController (#221)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@

namespace T3docs\Examples\EventListener\LinkValidator;

use TYPO3\CMS\Core\Attribute\AsEventListener;
use TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserFactory;
use TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent;
use TYPO3\CMS\Linkvalidator\Repository\BrokenLinkRepository;

#[AsEventListener(
identifier: 'txExampleCheckExternalLinksToLocalPages',
)]
final class CheckExternalLinksToLocalPagesEventListener
{
private const LOCAL_DOMAIN = 'example.org';
Expand Down
5 changes: 0 additions & 5 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ services:
tags:
- name: linkvalidator.linktype

T3docs\Examples\EventListener\LinkValidator\CheckExternalLinksToLocalPagesEventListener:
tags:
- name: event.listener
identifier: 'txExampleCheckExternalLinksToLocalPages'

T3docs\Examples\Command\DoSomethingCommand:
tags:
- name: console.command
Expand Down

0 comments on commit 52e31e6

Please sign in to comment.