# Shopware 6 Footer Subscriber greift nicht

**URL:** <https://forum.shopware.com/t/shopware-6-footer-subscriber-greift-nicht/103059>\
**Category:** Shopware 6 (German)\
**Created:** [21. Februar 2024 um 07:32 UTC](https://forum.shopware.com/t/shopware-6-footer-subscriber-greift-nicht/103059 "2024-02-21T07:32:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.david](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@b.david](https://forum.shopware.com/u/b.david)\
**Post date:** [21. Februar 2024 um 07:32 UTC](https://forum.shopware.com/t/shopware-6-footer-subscriber-greift-nicht/103059/1 "2024-02-21T07:32:30Z")

</div>

Hallo zusammen,  
ich möchte über mein Plugin das Copyright übersteuern oder ausblenden dazu habe ich mir 3 Felder erstellt welches auch mit der entsprechenden Konfiguration in der Datenbank die korrekten Werte besitzt.  
Leider scheint mein Subscriber das Event nicht auszulösen

```auto
<?php

declare(strict_types=1);

namespace CwCustomCopyright\Subscriber;

use Shopware\Storefront\Pagelet\Footer\FooterPageletLoadedEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Shopware\Core\System\SystemConfig\SystemConfigService;
use Psr\Log\LoggerInterface;

class PluginConfigSubscriber implements EventSubscriberInterface
{
    private SystemConfigService $configService;
    private LoggerInterface $logger;

    public function __construct(SystemConfigService $configService, LoggerInterface $logger)
    {
        $this->configService = $configService;
        $this->logger = $logger;
    }

    public static function getSubscribedEvents(): array
    {
        return [
            FooterPageletLoadedEvent::class => 'onFooterPageletLoaded',
        ];
    }

    public function onFooterPageletLoaded(FooterPageletLoadedEvent $event): void
    {
        $this->logger->debug('onFooterPageletLoaded method was called.');
        $config = [
            'favicon' => $this->configService->get('CwCustomCopyright.config.Favicon'),
            'customText' => $this->configService->get('CwCustomCopyright.config.CustomText'),
            'hideCopyright' => $this->configService->get('CwCustomCopyright.config.HideCopyright'),
        ];

        $this->logger->debug('Footer Pagelet Loaded Event: Konfigurationsdaten', $config);
        $event->getPagelet()->addExtension('CwCustomCopyright', $config);
    }
}

```

ich habe auch die services.xml

> \<?xml version="1.0" ?\>
> 
> ```
> <services>
> <service id="CwCustomCopyright\Subscriber\PluginConfigSubscriber">
> <tag name="kernel.event_subscriber"/>
> </service>
> </services>
> 
> ```

Leider scheint es nicht zu greifen und kann es auch im Symfony Profiler nicht sehen.
