如何在symfony中的src文件夹中为同一个bundle使用两个服务

时间:2016-02-11 11:32:52

标签: php symfony

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中使用异常监听器

0 个答案:

没有答案