|
@@ 96-100 (lines=5) @@
|
| 93 |
|
$_oContainer = new ContainerBuilder(); |
| 94 |
|
|
| 95 |
|
// load local parameters |
| 96 |
|
if (file_exists($this->getHomeDir() . DIRECTORY_SEPARATOR . 'parameters.yml')) |
| 97 |
|
{ |
| 98 |
|
$_oLoader = new YamlFileLoader($_oContainer, new FileLocator($this->getHomeDir())); |
| 99 |
|
$_oLoader->load('parameters.yml'); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
// load optional parameter in the current working directory |
| 103 |
|
if (file_exists($this->getWorkingDir() . DIRECTORY_SEPARATOR . '.chapiconfig')) |
|
@@ 103-107 (lines=5) @@
|
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
// load optional parameter in the current working directory |
| 103 |
|
if (file_exists($this->getWorkingDir() . DIRECTORY_SEPARATOR . '.chapiconfig')) |
| 104 |
|
{ |
| 105 |
|
$_oLoader = new YamlFileLoader($_oContainer, new FileLocator($this->getWorkingDir())); |
| 106 |
|
$_oLoader->load('.chapiconfig'); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
// load services |
| 110 |
|
$_oLoader = new YamlFileLoader($_oContainer, new FileLocator(__DIR__ . self::FOLDER_RESOURCES)); |