|
@@ 1226-1231 (lines=6) @@
|
| 1223 |
|
} |
| 1224 |
|
$file = $dir->getRealPath().'/config.yml'; |
| 1225 |
|
$config = null; |
| 1226 |
|
if (file_exists($file)) { |
| 1227 |
|
$config = Yaml::parse(file_get_contents($file)); |
| 1228 |
|
} else { |
| 1229 |
|
$this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file)); |
| 1230 |
|
continue; |
| 1231 |
|
} |
| 1232 |
|
|
| 1233 |
|
$file = $dir->getRealPath().'/event.yml'; |
| 1234 |
|
$event = null; |
|
@@ 1235-1239 (lines=5) @@
|
| 1232 |
|
|
| 1233 |
|
$file = $dir->getRealPath().'/event.yml'; |
| 1234 |
|
$event = null; |
| 1235 |
|
if (file_exists($file)) { |
| 1236 |
|
$event = Yaml::parse(file_get_contents($file)); |
| 1237 |
|
} else { |
| 1238 |
|
$this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file)); |
| 1239 |
|
} |
| 1240 |
|
if (!is_null($config)) { |
| 1241 |
|
$pluginConfigs[$code] = array( |
| 1242 |
|
'config' => $config, |