parameters:
# b_bids_b_bids_home.example.class: BBids\BBidsHomeBundle\Example
services:
# b_bids_b_bids_home.example:
# class: %b_bids_b_bids_home.example.class%
# arguments: [@service_id, "plain_value", %parameter%]
b_bids_b_bids_home.exception_listener:
class: BBids\BBidsHomeBundle\EventListener\ExceptionListener
arguments:
router: "@router"
tags:
- { name: kernel.event_listener,event: kernel.exception}
app.twig_extension:
class: BBids\BBidsHomeBundle\Twig\AppExtension
id: round_rating_extension
public: false
tags:
- { name: twig.extension }
我在src文件夹下声明同一个bundle中的两个服务时出错。我想在symfony中使用异常监听器