public function load(InputInterface $input): ConfigInterface
    {
        $configFile = $input->getOption('config');
        if (!$configFile || !$this->filesystem->fileExists($configFile)) {
            throw InvalidArgumentException::invalidConfigFile();
        }
        $config = include $configFile;
        if (!$config instanceof ConfigInterface) {
            throw InvalidArgumentException::invalidConfigFile();
        }

        return $config;
    }
public function load(InputInterface $input): ConfigInterface
    {
        $configFile = $input->getOption('config');
        if (!$configFile || !$this->filesystem->fileExists($configFile)) {
            throw InvalidArgumentException::invalidConfigFile();
        }
        $config = include $configFile;
        if (!$config instanceof ConfigInterface) {
            throw InvalidArgumentException::invalidConfigFile();
        }

        return $config;
    }
public function load ( InputInterface $ input ) : ConfigInterface { $ configFile = $ input -> getOption ( 'config' ) ; if ( ! $ configFile || ! $ this -> filesystem -> fileExists ( $ configFile ) ) { throw InvalidArgumentException :: invalidConfigFile ( ) ; } $ config = include $ configFile ; if ( ! $ config instanceof ConfigInterface ) { throw InvalidArgumentException :: invalidConfigFile ( ) ; } return $ config ; }
Attempts to load the configuration file, returns it on success
@param InputInterface $input
@return Config
Attempts to load the configuration file returns it on success