我试图在symfony 3.3中安装omnypay,我发现我必须安装 eventdispatcher:^ 2.8之前 使用:
composer require symfony/event-dispatcher:^2.8
但我收到了错误:
[InvalidArgumentException]
The service "resolve_controller_name_subscriber" must be public as event subscribers are lazy-loaded.
我将类(resolve_controller_name_subscriber)更改为公开,问题已解决,但我不确定这是否正确