Skip to content

Commit fdd1c83

Browse files
committed
CI: Fix Composer hook generateDoctrineProxies when there is no configuration.php file
1 parent 66a1d21 commit fdd1c83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Chamilo/CoreBundle/Composer/ScriptHandler.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,13 @@ public static function updateCss()
270270
*/
271271
public static function generateDoctrineProxies()
272272
{
273+
$configurationFile = __DIR__.'/../../../../app/config/configuration.php';
274+
275+
if (!is_file($configurationFile)) {
276+
echo 'app/config/configuration.php file does not exits.'.PHP_EOL;
277+
return;
278+
}
279+
273280
$helperSet = require __DIR__.'/../../../../cli-config.php';
274281

275282
$application = ConsoleRunner::createApplication(

0 commit comments

Comments
 (0)