Skip to content

Commit

Permalink
loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Oct 29, 2024
1 parent 5af9eba commit 0f2e1e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builders/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ module.exports = {
parent: '_appserver',
builder: (parent, config) => class LandoPhp extends parent {
constructor(id, options = {}, factory) {
const lando = _.get(options, '_app._lando');
options = parseConfig(_.merge({}, config, options));
// Mount our default php config
options.volumes.push(`${options.confDest}/${options.defaultFiles._php}:${options.remoteFiles._php}`);
Expand Down Expand Up @@ -202,10 +203,12 @@ module.exports = {
// Determine the appropriate composer version if not already set
if (_.isEmpty(options.composer_version) || options.composer_version === true) {
options.composer_version = getComposerVersion(options.version);
lando.log.debug('Setting composer version to %s for PHP %s', options.composer_version, options.version);
}

// Install the desired composer version
if (options.composer_version) {
lando.log.debug('Installing composer version %s', options.composer_version);
const commands = [`/helpers/install-composer.sh ${options.composer_version}`];
addBuildStep(commands, options._app, options.name, 'build_internal', true);
}
Expand Down

0 comments on commit 0f2e1e5

Please sign in to comment.