我有以下services.yml配置。我的语法出了什么问题?
parameters:
# parameter_name: value
services:
redirect.after.login:
class: UserBundle\Redirection\AfterLoginFailureRedirection
arguments: ["@http_kernel","@security.http_utils"]
calls:
-[setRouter,['@router']]
-[setContainer,['@container']]
# service_name:
# class: AppBundle\Directory\ClassName
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
答案 0 :(得分:0)
您错过了-
和[
parameters:
services:
redirect.after.login:
class: UserBundle\Redirection\AfterLoginFailureRedirection
arguments: ["@http_kernel","@security.http_utils"]
calls:
- [setRouter, ['@router']]
- [setContainer, ['@container']]