PPI\Framework\Config\ConfigLoader::__construct PHP 메소드

__construct() 공개 메소드

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

예제 #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);
 }