In Symfony2, can the validation.yml file be split into multiple files using imports?

前端 未结 8 1146
旧巷少年郎
旧巷少年郎 2020-12-13 10:48

Right now, I have a file called validation.yml with the validation of all the bundle\'s entities in one file.

validation.yml

Blogger\\BlogBundle\\Ent         


        
8条回答
  •  佛祖请我去吃肉
    2020-12-13 11:29

    You can add to your services.xml

    
        
            Blogger\BlogBundle\Resources\config\comment.yml
            Blogger\BlogBundle\Resources\config\enquiry.yml
        
    
    

提交回复
热议问题