mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-17 07:18:45 +00:00
Use class names for service names
This commit is contained in:
parent
0779825f80
commit
685fbe5188
4 changed files with 6 additions and 9 deletions
|
|
@ -38,6 +38,7 @@ class GenerateCommand extends Command
|
|||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
try {
|
||||
// TODO: Inject this.
|
||||
new Builder($this->filters($input), $outputFile = $this->outputFile($input));
|
||||
|
||||
$io->success(sprintf('%s file generated.', $outputFile));
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Opdavies\GmailFilterBuilder\Container;
|
||||
|
||||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
|
@ -13,7 +14,7 @@ class CommandCompilerClass implements CompilerPassInterface
|
|||
*/
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
$definition = $container->findDefinition('app.cli');
|
||||
$definition = $container->findDefinition(Application::class);
|
||||
$taggedServices = $container->findTaggedServiceIds('ConsoleCommand');
|
||||
|
||||
foreach ($taggedServices as $id => $tags) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue