/** * Check if bundle maintenance is enabled explicitly or if none are enabled * explicitly then maintenance mode is globally enabled. * * @return bool */ private function isBundleEnabled() { if (0 === count($this->bundles)) { return true; } $fullBundleName = $this->bundleInfo->getFullBundleName(); foreach ($this->bundles as $bundle) { if (strtolower($bundle) === strtolower($fullBundleName)) { return true; } } return false; }
/** * @return string */ public function getActionName() { return $this->bundleInformation->getAction(); }