public function config($data)
    {
        $items = is_array($data) ? $data : array();

        $config = new Provider\Configuration($items);

        if (is_string($data))
        {
            $config->load($data);
        }

        $interface = ProviderInterface::CONFIG;

        return $this->set($interface, $config);
    }
public function config($data)
    {
        $items = is_array($data) ? $data : array();

        $config = new Provider\Configuration($items);

        if (is_string($data))
        {
            $config->load($data);
        }

        $interface = ProviderInterface::CONFIG;

        return $this->set($interface, $config);
    }
public function config ( $ data ) { $ items = is_array ( $ data ) ? $ data : array ( ) ; $ config = new Provider \ Configuration ( $ items ) ; if ( is_string ( $ data ) ) { $ config -> load ( $ data ) ; } $ interface = ProviderInterface :: CONFIG ; return $ this -> set ( $ interface , $ config ) ; }
Creates a new configuration based on given data.

@param  array|string $data
@return self
Creates a new configuration based on given data .