New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow autoloading in modules for services use in BO #8909

merged 1 commit into from Apr 13, 2018


None yet
5 participants

mickaelandrieu commented Apr 2, 2018

Questions Answers
Branch? develop
Description? If you declare services in modules and if your module is using Composer as autoloader, the service container breaks during compilation because PrestaShop is unaware of classes inside the module (the module may not be instantiated when the service container is built).
Type? bug fix
Category? BO
BC breaks? no
Deprecations? no
How to test? Declare a service in one of your modules and try to access a "modern" Back Office page.

Important guidelines

This change is Reviewable

@@ -67,9 +67,16 @@ public function registerBundles()
* @see
if (extension_loaded('apc')) {
$_SERVER['CACHE__DRIVER'] = 'apc';

This comment has been minimized.


jocel1 Apr 2, 2018


You'll need to change the %env(CACHE_DRIVER)% in the config_prod.yml as well

This comment has been minimized.


mickaelandrieu Apr 2, 2018


true, but isn't already the case?

edit: ok i got it I've done a typo :)

I've reverted this typo, thanks


This comment has been minimized.


Quetzacoalt91 commented Apr 4, 2018

Do you have a module example to provide to the QA team?


This comment has been minimized.


mickaelandrieu commented Apr 6, 2018

Sure =>


This comment has been minimized.


mickaelandrieu commented Apr 12, 2018

@Quetzacoalt91 do I need to do something here, or is it mergeable? :)

@Quetzacoalt91 Quetzacoalt91 merged commit 6657c06 into PrestaShop:develop Apr 13, 2018

2 checks passed

Codacy/PR Quality Review Good work! A positive pull request.
continuous-integration/travis-ci/pr The Travis CI build passed

@mickaelandrieu mickaelandrieu deleted the mickaelandrieu:allow-autoloading-in-modules branch Apr 13, 2018

@eternoendless eternoendless added this to the milestone Apr 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment