private static function getGlobalConfig(Composer $composer, $filename, $io = null)
    {
        $home = self::getComposerHome($composer);
        $file = new JsonFile($home.'/'.$filename.'.json');
        $config = array();

        if ($file->exists()) {
            $data = $file->read();

            if (isset($data['config']['fxp-asset']) && \is_array($data['config']['fxp-asset'])) {
                $config = $data['config']['fxp-asset'];

                if ($io instanceof IOInterface && $io->isDebug()) {
                    $io->writeError('Loading fxp-asset config in file '.$file->getPath());
                }
            }
        }

        return $config;
    }
private static function getGlobalConfig(Composer $composer, $filename, $io = null)
    {
        $home = self::getComposerHome($composer);
        $file = new JsonFile($home.'/'.$filename.'.json');
        $config = array();

        if ($file->exists()) {
            $data = $file->read();

            if (isset($data['config']['fxp-asset']) && \is_array($data['config']['fxp-asset'])) {
                $config = $data['config']['fxp-asset'];

                if ($io instanceof IOInterface && $io->isDebug()) {
                    $io->writeError('Loading fxp-asset config in file '.$file->getPath());
                }
            }
        }

        return $config;
    }
private static function getGlobalConfig ( Composer $ composer , $ filename , $ io = null ) { $ home = self :: getComposerHome ( $ composer ) ; $ file = new JsonFile ( $ home . '/' . $ filename . '.json' ) ; $ config = array ( ) ; if ( $ file -> exists ( ) ) { $ data = $ file -> read ( ) ; if ( isset ( $ data [ 'config' ] [ 'fxp-asset' ] ) && \ is_array ( $ data [ 'config' ] [ 'fxp-asset' ] ) ) { $ config = $ data [ 'config' ] [ 'fxp-asset' ] ; if ( $ io instanceof IOInterface && $ io -> isDebug ( ) ) { $ io -> writeError ( 'Loading fxp-asset config in file ' . $ file -> getPath ( ) ) ; } } } return $ config ; }
Get the data of the global config.

@param Composer         $composer The composer
@param string           $filename The filename
@param null|IOInterface $io       The composer input/output

@return array
Get the data of the global config .