Contao\Environment::scriptName PHP 메소드

scriptName() 보호된 정적인 메소드

Return the relative path to the script (e.g. /website/index.php)
protected static scriptName ( ) : string
리턴 string The relative path to the script
    protected static function scriptName()
    {
        $request = \System::getContainer()->get('request_stack')->getCurrentRequest();
        if ($request === null) {
            return @$_SERVER['ORIG_SCRIPT_NAME'] ?: $_SERVER['SCRIPT_NAME'];
        }
        return $request->getScriptName();
    }