Symfony\Installer\AboutCommand::getExecutedCommand PHP 메소드

getExecutedCommand() 개인적인 메소드

Returns the executed command.
private getExecutedCommand ( ) : string
리턴 string The executed command
    private function getExecutedCommand()
    {
        $pathDirs = explode(PATH_SEPARATOR, $_SERVER['PATH']);
        $executedCommand = $_SERVER['PHP_SELF'];
        $executedCommandDir = dirname($executedCommand);
        if (in_array($executedCommandDir, $pathDirs)) {
            $executedCommand = basename($executedCommand);
        }
        return $executedCommand;
    }