router container JMS\I18nRoutingBundle\Router\I18nRouter
router_listener container Symfony\Component\HttpKernel\EventListener\RouterListener
routing.loader container Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader
ContextErrorException: Catchable Fatal Error: Argument 1 passed to App\CoreBundle\Form\EventListener\Url::__construct() must be an instance of Symfony\Bundle\FrameworkBundle\Routing\Router, none given, called in F:\domains\test.ekker.loc\src\App\CoreBundle\Form\FormCreateMenu.php on line 49 and defined in F:\domains\test.ekker.loc\src\App\CoreBundle\Form\EventListener\Url.php line 17
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add.......
// some
$builder->addEventSubscriber(new Url()); // <--------- ТУТ ОШИБКА, ЧТО РОУТЕР НЕ ПЕРЕДАЕТСЯ.
}