load() public static method

Load config from file extension dynamical
public static load ( string $filePath ) : Phalcon\Config
$filePath string
return Phalcon\Config
Example #1
0
 /**
  * @expectedException \Phalcon\Config\Exception
  * @expectedExceptionMessage Config adapter for .txt files is not support
  */
 public function testLoadUnsupportedConfigFile()
 {
     $file = INCUBATOR_FIXTURES . 'Config/config.txt';
     ConfigLoader::load($file);
 }