check propel.ini existence
if propel.ini file doesn't exists, the parse_ini file will fire a warning.
This commit is contained in:
parent
efd0b77c65
commit
4d0b86f5e7
1 changed files with 9 additions and 4 deletions
|
|
@ -321,10 +321,15 @@ EOT;
|
|||
{
|
||||
$fs = new Filesystem();
|
||||
|
||||
$buildProperties = array_merge(
|
||||
parse_ini_file($kernel->getRootDir().'/config/propel.ini'),
|
||||
$this->getContainer()->getParameter('propel.build_properties')
|
||||
);
|
||||
$buildProperties = $this->getContainer()->getParameter('propel.build_properties');
|
||||
|
||||
$inifile = $kernel->getRootDir().'/config/propel.ini';
|
||||
if (file_exists($inifile)) {
|
||||
$buildProperties = array_merge(
|
||||
parse_ini_file($inifile),
|
||||
$buildProperties
|
||||
);
|
||||
}
|
||||
|
||||
$fs->dumpFile($file, $this->arrayToIni($buildProperties));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue