services:
_defaults:
autowire: true
autoconfigure: true
App\Test\TestAbstract:
abstract: true
App\Test\TestA:
parent: App\Test\TestAbstract
autowire: false
autoconfigure: false
tags:
- { name: app.test }
App\Test\TestManager:
arguments: [!tagged { tag: 'app.test' }]
< /code>
My Class Testmanager имеет конструктор < /p>
public function __construct(iterable $tests, LoggerInterface $logger) {
dump($tests);
$this->logger = $logger;
}
< /code>
С этой конфигурацией у меня ошибка: < /p>
Cannot autowire service "App\Test\TestManager": argument "$tests" of method "__construct()" is type-hinted "iterable", you should configure its value explicitly.
Как я могу получить мои тегические службы с! Tag ?
App\Test\TestManager: arguments: [!tagged { tag: 'app.test' }] < /code> My Class Testmanager имеет конструктор < /p> public function __construct(iterable $tests, LoggerInterface $logger) { dump($tests); $this->logger = $logger; } < /code> С этой конфигурацией у меня ошибка: < /p> Cannot autowire service "App\Test\TestManager": argument "$tests" of method "__construct()" is type-hinted "iterable", you should configure its value explicitly. [/code] Как я могу получить мои тегические службы с! Tag ?