protected function drushInstallCommonStack(
        $executable,
        $drupal_root,
        DatabaseInterface $database
    ) {
        $options = $this->getInstallOptions();

        $db_user = $database->getUser();
        $db_port = $database->getPort();
        $db_pass = $database->getPassword();
        $db_name = $database->getDatabase();
        $db_host = $database->getHostname();
        $db_protocol = $database->getProtocol();

        return $this->taskDrushStack($executable)
            ->drupalRootDirectory($drupal_root)
            ->siteName($options['site']['name'])
            ->accountMail($options['account']['mail'])
            ->accountName($options['account']['name'])
            ->accountPass($options['account']['pass'])
            ->dbUrl("$db_protocol://$db_user:$db_pass@$db_host:$db_port/$db_name")
            ->siteInstall($options['site']['profile']);
    }
protected function drushInstallCommonStack(
        $executable,
        $drupal_root,
        DatabaseInterface $database
    ) {
        $options = $this->getInstallOptions();

        $db_user = $database->getUser();
        $db_port = $database->getPort();
        $db_pass = $database->getPassword();
        $db_name = $database->getDatabase();
        $db_host = $database->getHostname();
        $db_protocol = $database->getProtocol();

        return $this->taskDrushStack($executable)
            ->drupalRootDirectory($drupal_root)
            ->siteName($options['site']['name'])
            ->accountMail($options['account']['mail'])
            ->accountName($options['account']['name'])
            ->accountPass($options['account']['pass'])
            ->dbUrl("$db_protocol://$db_user:$db_pass@$db_host:$db_port/$db_name")
            ->siteInstall($options['site']['profile']);
    }
protected function drushInstallCommonStack ( $ executable , $ drupal_root , DatabaseInterface $ database ) { $ options = $ this -> getInstallOptions ( ) ; $ db_user = $ database -> getUser ( ) ; $ db_port = $ database -> getPort ( ) ; $ db_pass = $ database -> getPassword ( ) ; $ db_name = $ database -> getDatabase ( ) ; $ db_host = $ database -> getHostname ( ) ; $ db_protocol = $ database -> getProtocol ( ) ; return $ this -> taskDrushStack ( $ executable ) -> drupalRootDirectory ( $ drupal_root ) -> siteName ( $ options [ 'site' ] [ 'name' ] ) -> accountMail ( $ options [ 'account' ] [ 'mail' ] ) -> accountName ( $ options [ 'account' ] [ 'name' ] ) -> accountPass ( $ options [ 'account' ] [ 'pass' ] ) -> dbUrl ( "$db_protocol://$db_user:$db_pass@$db_host:$db_port/$db_name" ) -> siteInstall ( $ options [ 'site' ] [ 'profile' ] ) ; }
Drush install common command.

@param $executable
The drush executable.
@param $drupal_root
The drupal install root.
@param DatabaseInterface $database
The database object.

@return DrushStack
Drush install common command .