From efa2b533c52493f77b91f2491a98c0d73313387e Mon Sep 17 00:00:00 2001 From: danielcroona Date: Fri, 4 Feb 2022 14:30:57 +0100 Subject: [PATCH] Update services.yml Declaring value for name in Export Command to handle Symfony\Component\DependencyInjection\Exception\RuntimeException {#19537 #message: "Cannot autowire service "Elements\Bundle\ExportToolkitBundle\Command\ExportCommand": argument "$name" of method "__construct()" is type-hinted "string", you should configure its value explicitly." --- src/Resources/config/services.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 807efdc..3438e89 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -16,8 +16,10 @@ services: Elements\Bundle\ExportToolkitBundle\Command\: resource: '../../Command' + arguments: + $name: 'export_name' Elements\Bundle\ExportToolkitBundle\Controller\: resource: '../../Controller' public: true - tags: ['controller.service_arguments'] \ No newline at end of file + tags: ['controller.service_arguments']