src/Leevel/Http/Request.php
public function getEnter(): string
    {
        if ($this->isCli()) {
            return '';
        }

        $scriptName = $this->getScriptName();
        $scriptName = dirname($scriptName);

        if ('\\' === $scriptName) {
            $scriptName = '/';
        }

        return $scriptName;
    }
public function getEnter(): string
    {
        if ($this->isCli()) {
            return '';
        }

        $scriptName = $this->getScriptName();
        $scriptName = dirname($scriptName);

        if ('\\' === $scriptName) {
            $scriptName = '/';
        }

        return $scriptName;
    }
返回入口文件.

@return string