0fe2369ce73582d72f4ed2a28e14ef1f1dea1c0a
[yaffs-website] / web / themes / contrib / bootstrap / autoload-fix.php
1 <?php
2 /**
3  * @file
4  * Fix the class loader to allow cross-request class based theme callbacks.
5  */
6
7 /**
8  * Invokes \Drupal\Core\Extension\ThemeHandler::listInfo.
9  *
10  * This is in an attempt to ensure theme autoloading works properly.
11  *
12  * @see \Drupal\bootstrap\Bootstrap::autoloadFixInclude
13  */
14 try {
15   \Drupal::service('theme_handler')->listInfo();
16 }
17 catch (\Exception $e) {
18   // Intentionally left blank.
19 }