Contao\CoreBundle\Framework\ContaoFrameworkInterface::isInitialized PHP Method

isInitialized() public method

Checks if the framework has been initialized.
public isInitialized ( ) : boolean
return boolean
    public function isInitialized();

Usage Example

コード例 #1
0
 /**
  * Adds the Contao headers to the Symfony response.
  *
  * @param FilterResponseEvent $event The event object
  */
 public function onKernelResponse(FilterResponseEvent $event)
 {
     if (!$this->contaoFramework->isInitialized()) {
         return;
     }
     $event->setResponse($this->mergeHttpHeaders($event->getResponse()));
 }
All Usage Examples Of Contao\CoreBundle\Framework\ContaoFrameworkInterface::isInitialized