Skip to content

Instantly share code, notes, and snippets.

@tSixTM
tSixTM / gist:86a29ee75dbd117c8f8571d458ed72db
Created June 9, 2020 19:14
Symfony 5 URL Generation from Console Command not working...
<?php
// src/Command/MyCommand.php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Command\LockableTrait;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;