protected function loadFile(string $file, array $options): ?Config
    {
        if (is_dir($file)) {
            return (bool)($options['recursive'] ?? false) ? $this->load($file, $options) : null;
        }

        return $this->getFileLoader()->load($file, $options);
    }
protected function loadFile(string $file, array $options): ?Config
    {
        if (is_dir($file)) {
            return (bool)($options['recursive'] ?? false) ? $this->load($file, $options) : null;
        }

        return $this->getFileLoader()->load($file, $options);
    }
protected function loadFile ( string $ file , array $ options ) : ? Config { if ( is_dir ( $ file ) ) { return ( bool ) ( $ options [ 'recursive' ] ?? false ) ? $ this -> load ( $ file , $ options ) : null ; } return $ this -> getFileLoader ( ) -> load ( $ file , $ options ) ; }
Load a file or subdirectory

@param string $file
@param array  $options
@return Config|null
Load a file or subdirectory