Tip regarding SF services loaded from the directory
kpodemski opened this issue · 0 comments
kpodemski commented
https://prestashop.slack.com/archives/CTKG1NKAP/p1688373114406059
I was recently rewriting one of my module for prestashop 8.1 to make us of autowire and autoconfigure. I lost like 1h trying to figure out why it kept redirecting my from BO to FO 🤦 . So I would like to give you little tip 😄 If you are adding resources to your module namespace make sure to exclude every index.php file 😂
Your\Module\Namespace\:
resource: '../src/*'
exclude:
- '../src/index.php'
- '../src/*/index.php'
Probably somewhere to Services documentation.