Commit 65d9e227 authored by rlhawk's avatar rlhawk Committed by willzyx

Issue #2853398 by rlhawk: Class 'Drupal\bootstrap\Bootstrap' not found error...

Issue #2853398 by rlhawk: Class 'Drupal\bootstrap\Bootstrap' not found error when enabling devel's 'Rebuild the theme registry on every page load`
parent 320e1bf8
......@@ -75,6 +75,10 @@ class ThemeInfoRebuildSubscriber implements EventSubscriberInterface {
drupal_theme_rebuild();
// Refresh theme data.
$this->themeHandler->refreshInfo();
// Resets the internal state of the theme handler and clear the 'system
// list' cache; this allow to properly register, if needed, PSR-4
// namespaces for theme extensions after refreshing the info data.
$this->themeHandler->reset();
// Notify the user that the theme info are rebuilt on every request.
$this->triggerWarningIfNeeded($event->getRequest());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment