PPI\Framework\Config\ConfigLoader::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string | array $paths = [] )
$paths string | array A path or an array of paths where to look for resources
    public function __construct($paths = array())
    {
        $this->paths = (array) $paths;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param string       $cachePath
  * @param boolean      $cacheEnabled
  * @param string|array $paths        A path or an array of paths where to look for resources
  */
 public function __construct($cachePath, $cacheEnabled, $paths = array())
 {
     $this->cachePath = $cachePath;
     $this->cacheEnabled = (bool) $cacheEnabled;
     if (true === $this->cacheEnabled && file_exists($this->cachePath)) {
         $this->skipConfig = true;
         $this->mergedConfig = (require $this->cachePath);
     }
     parent::__construct($paths);
 }