<?php

namespace drunomics\Phapp\Commands;

use drunomics\Phapp\PhappCommandBase;
use drunomics\Phapp\ServiceUtil\BuildCommandsTrait;

/**
 * Provides the install command.
 */
class InstallCommands extends PhappCommandBase  {

  use BuildCommandsTrait;

  /**
   * Installs the application.
   *
   * @option bool $build Build before running an update if the app is in
   *   development mode.
   *
   * @command install
   */
  public function install(array $options = ['build' => TRUE]) {
    $collection = $this->collectionBuilder();
    $collection->setProgressIndicator(NULL);
    if (getenv('PHAPP_ENV_MODE') == 'development' && $options['build']) {
      $collection->addCode(function() {
        $this->io()->title('Building...');
      });
      $collection->addTask(
        $this->getBuildCommands()->build(['clean' => FALSE])
      );
      $collection->addCode(function() {
        $this->io()->title('Installing...');
      });
    }
    $collection->addTask(
      $this->invokeManifestCommand('install')
    );
    return $collection;
  }

}

<?php

namespace drunomics\Phapp\Commands;

use drunomics\Phapp\PhappCommandBase;
use drunomics\Phapp\ServiceUtil\BuildCommandsTrait;

/**
 * Provides the install command.
 */
class InstallCommands extends PhappCommandBase  {

  use BuildCommandsTrait;

  /**
   * Installs the application.
   *
   * @option bool $build Build before running an update.
   *
   * @command install
   */
  public function install(array $options = ['build' => TRUE]) {
    $collection = $this->collectionBuilder();
    $collection->setProgressIndicator(NULL);
    if ($options['build']) {
      $collection->addCode(function() {
        $this->io()->title('Building...');
      });
      $collection->addTask(
        $this->getBuildCommands()->build(['clean' => FALSE])
      );
      $collection->addCode(function() {
        $this->io()->title('Installing...');
      });
    }
    $collection->addTask(
      $this->invokeManifestCommand('install')
    );
    return $collection;
  }

}

Remove broken development mode detection from install command, but build by default as init does.
Remove broken development mode detection from install command, but build by default as init does.
