How to enable a library in symfony

I am writing an application using symfony. I have some reusable components that I don’t want to introduce into the core Symfony modules; instead, they are in the directory lib.

What I want to know is what is the best way to include this file? Can I include lib/foo/bar.phpor do I need the full path, or is there something else I should do?

+3
source share
2 answers

I'm not an expert at Symfony, but these links will help you. Also, because I'm new to this forum, stackowerfolow only allows me to post 1 link, so my second link will be an explanation of how to find it .;)

0

, lib

sfConfig::get('sf_lib_dir')
0

Source: https://habr.com/ru/post/1744737/


All Articles