public function leaveLegacyRootDir()
    {
        $previousDir = $this->previousRunningDir;
        if (!$previousDir) {
            if ($this->logger) {
                $this->logger->warning(
                    "Trying to leave legacy root dir without a previously executing dir. Falling back to '$this->webRootDir'"
                );
            }
            $previousDir = $this->webRootDir;
        }

        $this->previousRunningDir = null;
        if ($this->logger) {
            $this->logger->debug("Legacy kernel: Leaving '$this->legacyRootDir' for '$previousDir'");
        }
        chdir($previousDir);
    }
public function leaveLegacyRootDir()
    {
        $previousDir = $this->previousRunningDir;
        if (!$previousDir) {
            if ($this->logger) {
                $this->logger->warning(
                    "Trying to leave legacy root dir without a previously executing dir. Falling back to '$this->webRootDir'"
                );
            }
            $previousDir = $this->webRootDir;
        }

        $this->previousRunningDir = null;
        if ($this->logger) {
            $this->logger->debug("Legacy kernel: Leaving '$this->legacyRootDir' for '$previousDir'");
        }
        chdir($previousDir);
    }
public function leaveLegacyRootDir ( ) { $ previousDir = $ this -> previousRunningDir ; if ( ! $ previousDir ) { if ( $ this -> logger ) { $ this -> logger -> warning ( "Trying to leave legacy root dir without a previously executing dir. Falling back to '$this->webRootDir'" ) ; } $ previousDir = $ this -> webRootDir ; } $ this -> previousRunningDir = null ; if ( $ this -> logger ) { $ this -> logger -> debug ( "Legacy kernel: Leaving '$this->legacyRootDir' for '$previousDir'" ) ; } chdir ( $ previousDir ) ; }
Leaves the legacy root dir and switches back to the dir where execution was happening before we entered LegacyRootDir.
Leaves the legacy root dir and switches back to the dir where execution was happening before we entered LegacyRootDir .