@ParamConverterhe和MongoDB

my_bundle.converter.doctrine.mongodb:
    class: Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter
    arguments: [@doctrine_mongodb]
    tags:
        - { name: request.param_converter }

只須要註冊一個service,把參數換成mongodb的service就能夠了。mongodb

相關文章
相關標籤/搜索