public static function load($file)
    {
        $complement = Json::fileToArray($file);
        $complement['config-file'] = $file;
        self::$id = isset($complement['id']) ? $complement['id'] : 'Default';
        $that = self::getInstance();

        return $that->setComplement($complement);
    }
public static function load($file)
    {
        $complement = Json::fileToArray($file);
        $complement['config-file'] = $file;
        self::$id = isset($complement['id']) ? $complement['id'] : 'Default';
        $that = self::getInstance();

        return $that->setComplement($complement);
    }
public static function load ( $ file ) { $ complement = Json :: fileToArray ( $ file ) ; $ complement [ 'config-file' ] = $ file ; self :: $ id = isset ( $ complement [ 'id' ] ) ? $ complement [ 'id' ] : 'Default' ; $ that = self :: getInstance ( ) ; return $ that -> setComplement ( $ complement ) ; }
Load complement configuration from json file and set settings.

@param string $file → path or url to the complement configuration file

@uses \Josantonius\Json\Json::fileToArray()
@uses \Eliasis\Complement\ComplementHandler->setComplement()

@return bool true
Load complement configuration from json file and set settings .