Both parameter wasn't used in the function, removing them

This commit is contained in:
Jeremy Benoist 2017-06-01 09:30:38 +02:00
parent c3f7a2ca70
commit 10bf812a9e
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -5,7 +5,6 @@ namespace Wallabag\UserBundle\EventListener;
use Doctrine\ORM\EntityManager;
use FOS\UserBundle\Event\UserEvent;
use FOS\UserBundle\FOSUserEvents;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Wallabag\CoreBundle\Entity\Config;
@ -47,7 +46,7 @@ class CreateConfigListener implements EventSubscriberInterface
];
}
public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null)
public function createConfig(UserEvent $event)
{
$config = new Config($event->getUser());
$config->setTheme($this->theme);