Way to require an autoload in one file on a Prestashop module?
问题 I'm trying to use a set of libraries with Composer for a Prestashop module. My current approach is to include the vendor/autoload.php file on every file ( mymodule.php , controllers/front/foo.php , controllers/admin/bar.php , etc.) Doing the require only on top of the mymodule.php is not a solution, I don't see any hook to do the task. Is there a better approach than copy & paste the same snippet on top of every PHP file? Thank you! 回答1: I've found the way to do it! The actionDispatcher hook