public function drupalLocalSetup($opts = [
        'db-name' => null,
        'db-user' => null,
        'db-pass' => null,
        'db-host' => null,
        'db-port' => null,
        'db-protocol' => null,
        'no-engine' => false,
        'no-browser' => false,
        'restore-method' => null,
        'localhost' => false,
    ])
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $database = $this->buildDatabase($opts);
        $this
            ->getProjectInstance()
            ->setDatabaseOverride($database)
            ->setupExistingProject(
                $opts['no-engine'],
                $opts['restore-method'],
                $opts['no-browser'],
                $opts['localhost']
            );
        $this->executeCommandHook(__FUNCTION__, 'after');

        return $this;
    }
public function drupalLocalSetup($opts = [
        'db-name' => null,
        'db-user' => null,
        'db-pass' => null,
        'db-host' => null,
        'db-port' => null,
        'db-protocol' => null,
        'no-engine' => false,
        'no-browser' => false,
        'restore-method' => null,
        'localhost' => false,
    ])
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $database = $this->buildDatabase($opts);
        $this
            ->getProjectInstance()
            ->setDatabaseOverride($database)
            ->setupExistingProject(
                $opts['no-engine'],
                $opts['restore-method'],
                $opts['no-browser'],
                $opts['localhost']
            );
        $this->executeCommandHook(__FUNCTION__, 'after');

        return $this;
    }
public function drupalLocalSetup ( $ opts = [ 'db-name' => null , 'db-user' => null , 'db-pass' => null , 'db-host' => null , 'db-port' => null , 'db-protocol' => null , 'no-engine' => false , 'no-browser' => false , 'restore-method' => null , 'localhost' => false , ] ) { $ this -> executeCommandHook ( __FUNCTION__ , 'before' ) ; $ database = $ this -> buildDatabase ( $ opts ) ; $ this -> getProjectInstance ( ) -> setDatabaseOverride ( $ database ) -> setupExistingProject ( $ opts [ 'no-engine' ] , $ opts [ 'restore-method' ] , $ opts [ 'no-browser' ] , $ opts [ 'localhost' ] ) ; $ this -> executeCommandHook ( __FUNCTION__ , 'after' ) ; return $ this ; }
Setup local environment for already built projects.

@hidden
@deprecated

@param array $opts

@option string $db-name Set the database name.
@option string $db-user Set the database user.
@option string $db-pass Set the database password.
@option string $db-host Set the database host.
@option string $db-port Set the database port.
@option string $db-protocol Set the database protocol.
@option bool $no-engine Don't start local development engine.
@option bool $no-browser Don't launch a browser window after setup is complete.
@option string $restore-method Set the database restore method: site-config, or database-import.
@option bool $localhost Install database using localhost.

@return self
@throws \Exception
@throws \Psr\Container\ContainerExceptionInterface
@throws \Psr\Container\NotFoundExceptionInterface
Setup local environment for already built projects .