We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An example is the Mandrill module.
// Load Mandrill library if found in module's /lib directory. if (file_exists(drupal_get_path('module', 'mandrill') . '/lib/mandrill/src/Mandrill.php')) { require drupal_get_path('module', 'mandrill') . '/lib/mandrill/src/Mandrill.php'; }
This is due to drupal_get_path which calls drupal_get_filename and taps into the service container.
drupal_get_path
drupal_get_filename
It is fixed with
try { require $module_dir . '/' . $module->getExtensionFilename(); } catch (\Throwable $e) { // Something prevent the extension file from loading. }
The text was updated successfully, but these errors were encountered:
5c44164
Prevent extension file errors from halting inspection
4d3ec18
Fixes #3
File mglaman#3
131de19
ae6e496
f54b34f
4242a20
No branches or pull requests
An example is the Mandrill module.
This is due to
drupal_get_path
which callsdrupal_get_filename
and taps into the service container.It is fixed with
The text was updated successfully, but these errors were encountered: