src/Core/UriComponents.php
public static function createFromArray($config)
    {
        if (!isset($config['stack'])) {
            throw new \RuntimeException('Stack has to be set');
        }
        $hash = isset($config['hash']) ? $config['hash'] : null;
        $format = isset($config['format']) ? $config['format'] : null;
        $filename = isset($config['filename']) ? $config['filename'] : null;

        return new self($config['stack'], $hash, $format, $filename);
    }
public static function createFromArray($config)
    {
        if (!isset($config['stack'])) {
            throw new \RuntimeException('Stack has to be set');
        }
        $hash = isset($config['hash']) ? $config['hash'] : null;
        $format = isset($config['format']) ? $config['format'] : null;
        $filename = isset($config['filename']) ? $config['filename'] : null;

        return new self($config['stack'], $hash, $format, $filename);
    }
public static function createFromArray ( $ config ) { if ( ! isset ( $ config [ 'stack' ] ) ) { throw new \ RuntimeException ( 'Stack has to be set' ) ; } $ hash = isset ( $ config [ 'hash' ] ) ? $ config [ 'hash' ] : null ; $ format = isset ( $ config [ 'format' ] ) ? $ config [ 'format' ] : null ; $ filename = isset ( $ config [ 'filename' ] ) ? $ config [ 'filename' ] : null ; return new self ( $ config [ 'stack' ] , $ hash , $ format , $ filename ) ; }
Creates a UriComponent object from an array with 'stack', 'hash', 'format', 'filename' and 'stack' as keys.

@since 1.2.0

@param mixed $config
Creates a UriComponent object from an array with stack hash format filename and stack as keys .