for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bright Nucleus Config Component.
*
* @package BrightNucleus\Config
* @author Alain Schlesser <[email protected]>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\Config;
use BrightNucleus\Config\Exception\FailedToLoadConfigException;
use BrightNucleus\Config\Loader\LoaderFactory;
* Class Loader.
* @since 0.4.0
class Loader
{
* Static convenience function to load a configuration from an URI.
* @param string $uri URI of the resource to load.
* @return array|null Parsed data loaded from the resource.
* @throws FailedToLoadConfigException If the configuration could not be loaded.
public static function load($uri)
$loader = LoaderFactory::createFromUri($uri);
return $loader->load($uri);
}