Contao\CoreBundle\Framework\ContaoFramework::initialize PHP Method

initialize() public method

public initialize ( )
    public function initialize()
    {
        if ($this->isInitialized()) {
            return;
        }
        // Set before calling any methods to prevent recursion
        self::$initialized = true;
        if (null === $this->container) {
            throw new \LogicException('The service container has not been set.');
        }
        // Set the current request
        $this->request = $this->requestStack->getCurrentRequest();
        $this->setConstants();
        $this->initializeFramework();
    }