<?php
/**
 * Configuration Provider Interface
 * 
 * The Media Manager allows multiple configurations that can be selected
 * based on an key. This interface defines the provider that fetches the
 * configuration based on it's key
 * 
 * @author Visual Media 
 */

namespace VisualM\MediaManagerBundle\Configuration;

/**
 * Configuration Provider Interface
 * 
 * @author Visual Media 
 */
interface ConfigurationProviderInterface
{
    /**
     * Retrieve Configuration for given key
     * 
     * Note: Altrough not enforced in any way, the key
     * should only contain characters a-z and 0-9 becouse it's used in 
     * the URL's
     * 
     * @param string $key Key
     * 
     * @return ConfigurationInterface Configuration
     */
    public function getConfiguration($key);    
}