Neos\Flow\Core\LockManager::doExit PHP 메소드

doExit() 보호된 메소드

Exit and emit a message about the reason.
protected doExit ( ) : void
리턴 void
    protected function doExit()
    {
        if (FLOW_SAPITYPE === 'Web') {
            header('HTTP/1.1 503 Service Temporarily Unavailable');
            readfile(FLOW_PATH_FLOW . 'Resources/Private/Core/LockHoldingStackPage.html');
        } else {
            $expiresIn = abs(time() - self::LOCKFILE_MAXIMUM_AGE - filemtime($this->lockFlagPathAndFilename));
            echo 'Site is currently locked, exiting.' . PHP_EOL . 'The current lock will expire after ' . $expiresIn . ' seconds.' . PHP_EOL;
        }
        exit(1);
    }