Skip to content
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

// CORE : Move require of module class to handle more potential issues #5397

Merged

Conversation

Quetzacoalt91
Copy link
Member

Please take the time to edit the "Answers" rows with the necessary information:

Questions Answers
Branch? develop
Description? Improve the tests on the modules class in order to handle more potential issues before loading them
Type? bug fix AND improvement
Category? CORE
BC breaks? Nope
Deprecations? Nope
How to test? You can make a test with the module mailjet, because we have an issue with the swift class which has moved. With this additionnal test, we can still load the module page even if this module cannot work anymore.

try {
require_once $file_path;
} catch (\Exception $e) {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you log the exception ?

@mickaelandrieu
Copy link
Contributor

Ok, I'll do it then lol

@Quetzacoalt91
Copy link
Member Author

You don't have too. It has been done in the referenced PR (#5403)

@Quetzacoalt91 Quetzacoalt91 deleted the module-repository-check-class branch April 19, 2016 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants