3 namespace Drupal\advagg_bundler\EventSubscriber;
5 use Symfony\Component\HttpKernel\KernelEvents;
6 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
9 * Set the AdvAgg setting core_groups to FALSE if bundler is enabled.
11 class InitSubscriber implements EventSubscriberInterface {
16 public static function getSubscribedEvents() {
17 return [KernelEvents::REQUEST => ['onEvent', 0]];
23 public function onEvent() {
24 if (advagg_bundler_enabled()) {
25 $GLOBALS['conf']['core_groups'] = FALSE;