protected function findGApiAccessTokenFileValue(InputInterface $input, OutputInterface $output): ?string
    {

        $needToParseConfigFile = false;


        $gApiAccessTokenFile = $this->getGApiAccessTokenFileOption($input);
        if ($gApiAccessTokenFile === null) {
            $needToParseConfigFile = true;
            if ($output->isVerbose()) {
                $output->writeln('The access token file path is not specified, will try to get the path from a configuration file');
            }
        }

        // If the API file paths are not specified, find and read a configuration file
        if ($needToParseConfigFile) {
            if(!$this->isGApiAuthConfigOptionsFindable($output)){
                return null;
            }

            if ($gApiAccessTokenFile === null && $this->findGApiAccessTokenFileConfig($output)) {
                $gApiAccessTokenFile = $this->findGApiAccessTokenFileConfig($output);
            }
        }

        return $gApiAccessTokenFile;
    }
protected function findGApiAccessTokenFileValue(InputInterface $input, OutputInterface $output): ?string
    {

        $needToParseConfigFile = false;


        $gApiAccessTokenFile = $this->getGApiAccessTokenFileOption($input);
        if ($gApiAccessTokenFile === null) {
            $needToParseConfigFile = true;
            if ($output->isVerbose()) {
                $output->writeln('The access token file path is not specified, will try to get the path from a configuration file');
            }
        }

        // If the API file paths are not specified, find and read a configuration file
        if ($needToParseConfigFile) {
            if(!$this->isGApiAuthConfigOptionsFindable($output)){
                return null;
            }

            if ($gApiAccessTokenFile === null && $this->findGApiAccessTokenFileConfig($output)) {
                $gApiAccessTokenFile = $this->findGApiAccessTokenFileConfig($output);
            }
        }

        return $gApiAccessTokenFile;
    }
protected function findGApiAccessTokenFileValue ( InputInterface $ input , OutputInterface $ output ) : ? string { $ needToParseConfigFile = false ; $ gApiAccessTokenFile = $ this -> getGApiAccessTokenFileOption ( $ input ) ; if ( $ gApiAccessTokenFile === null ) { $ needToParseConfigFile = true ; if ( $ output -> isVerbose ( ) ) { $ output -> writeln ( 'The access token file path is not specified, will try to get the path from a configuration file' ) ; } } // If the API file paths are not specified, find and read a configuration file if ( $ needToParseConfigFile ) { if ( ! $ this -> isGApiAuthConfigOptionsFindable ( $ output ) ) { return null ; } if ( $ gApiAccessTokenFile === null && $ this -> findGApiAccessTokenFileConfig ( $ output ) ) { $ gApiAccessTokenFile = $ this -> findGApiAccessTokenFileConfig ( $ output ) ; } } return $ gApiAccessTokenFile ; }
Attempts to find GApiAccessTokenFile from option or config.

@param InputInterface $input
@param OutputInterface $output
@return stirng|null If the input is incorrect, null is returned. Otherwise an string is returned.
Attempts to find GApiAccessTokenFile from option or config .