File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace Ayacoo \AyacooSoundcloud \Command ;
66
77use Ayacoo \AyacooSoundcloud \Service \UpdateMetadataService ;
8+ use Symfony \Component \Console \Attribute \AsCommand ;
89use Symfony \Component \Console \Command \Command ;
910use Symfony \Component \Console \Input \InputInterface ;
1011use Symfony \Component \Console \Input \InputOption ;
1112use Symfony \Component \Console \Output \OutputInterface ;
1213use Symfony \Component \Console \Style \SymfonyStyle ;
1314
15+ #[AsCommand('soundcloud:updateMetadata ' , 'Updates the Soundcloud metadata ' )]
1416class UpdateMetadataCommand extends Command
1517{
1618 protected function configure (): void
Original file line number Diff line number Diff line change 44
55namespace Ayacoo \AyacooSoundcloud \EventListener ;
66
7+ use TYPO3 \CMS \Core \Attribute \AsEventListener ;
78use TYPO3 \CMS \Core \Imaging \Event \ModifyIconForResourcePropertiesEvent ;
89use TYPO3 \CMS \Core \Resource \File ;
910
1213 */
1314final class ModifyIconForResourcePropertiesListener
1415{
16+ #[AsEventListener]
1517 public function __invoke (ModifyIconForResourcePropertiesEvent $ event ): void
1618 {
1719 $ resource = $ event ->getResource ();
Original file line number Diff line number Diff line change @@ -8,17 +8,4 @@ services:
88 resource : ' ../Classes/*'
99 exclude :
1010 - ' ../Classes/Domain/Model/*'
11- - ' ../Classes/Helper/*'
12-
13- Ayacoo\AyacooSoundcloud\Command\UpdateMetadataCommand :
14- tags :
15- - name : ' console.command'
16- command : ' soundcloud:updateMetadata'
17- description : ' Updates the Soundcloud metadata'
18- schedulable : true
19-
20- Ayacoo\AyacooSoundcloud\EventListener\ModifyIconForResourcePropertiesListener :
21- tags :
22- - name : ' event.listener'
23- identifier : ' ayacoo-soundcloud/modify-icon-for-resource'
24- event : ' TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent'
11+ - ' ../Classes/Helper/*'
You can’t perform that action at this time.
0 commit comments