Symfony\Installer\AboutCommand::getExecutedCommand PHP Method

getExecutedCommand() private method

Returns the executed command.
private getExecutedCommand ( ) : string
return 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;
    }