Symfonian way to store custom utilities and helpers in symfony 2

丶灬走出姿态 提交于 2019-12-05 07:48:25
Elnur Abdurrakhimov

If your utilities and helpers are not Symfony specific, create a library in a separate repo and install it to vendors using the deps with the bin/vendors install command or via Composer, which will become the default way of managing vendors since Symfony 2.1.

If you want your library to integrate seamlessly with Symfony, create a bundle in another separate repo and install it to vendors. This way your library could be used outside Symfony projects, but provide some conveniences when used in Symfony ones.

Also see a somewhat related question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!