isCiDetected()) { $symfonyStyle->warning(sprintf('"php %s" skipped in CI composer', __FILE__)); return; } parent::init('Running composer "post-update-cmd" scripts, for `bolt/core` installation'); self::run('php bin/console extensions:configure --with-config --ansi'); self::run('php bin/console cache:clear --no-warmup'); self::run('php bin/console assets:install --symlink --relative public'); $res = self::run('php bin/console doctrine:migrations:up-to-date'); if (! $res) { $migrate = 'Database is out-of-date. To update the database, run `php bin/console doctrine:migrations:migrate`.'; $migrate .= ' You are strongly advised to backup your database before migrating.'; $symfonyStyle->warning($migrate); } self::run('php bin/console bolt:info --ansi'); } }