I have 2 applications: frontend and backend.
I am running the custom task with the following command:
php symfony newCron:createClusters --application=frontend
In each applications I have a lib folder and a modules folder. Through the above command only this apps->frontend->lib folder is accessible, whereas the lib folder in apps->frontend->modules->module1->lib is not accessible.
How can I access the module level lib files in my task?
I tried using the addOption command in the config method, but still nothing happens.
I think you have two options.
The “symfony way”
Using
autoload.yml(inapps/frontend/config/autoload.yml):The “php old way”
Using basic
require_onceinside your task: