public function createDrupalLoginLink($user = null, $path = null, $localhost = false)
    {
        $arg = [];
        if (isset($user)) {
            $arg[] = $user;
        }
        if (isset($path)) {
            $arg[] = $path;
        }
        $args = implode(' ', $arg);

        $drush = (new DrushCommand(null, $localhost))
            ->command("uli {$args}");

        $this->runDrushCommand($drush, false, $localhost);

        return $this;
    }
public function createDrupalLoginLink($user = null, $path = null, $localhost = false)
    {
        $arg = [];
        if (isset($user)) {
            $arg[] = $user;
        }
        if (isset($path)) {
            $arg[] = $path;
        }
        $args = implode(' ', $arg);

        $drush = (new DrushCommand(null, $localhost))
            ->command("uli {$args}");

        $this->runDrushCommand($drush, false, $localhost);

        return $this;
    }
public function createDrupalLoginLink ( $ user = null , $ path = null , $ localhost = false ) { $ arg = [ ] ; if ( isset ( $ user ) ) { $ arg [ ] = $ user ; } if ( isset ( $ path ) ) { $ arg [ ] = $ path ; } $ args = implode ( ' ' , $ arg ) ; $ drush = ( new DrushCommand ( null , $ localhost ) ) -> command ( "uli {$args}" ) ; $ this -> runDrushCommand ( $ drush , false , $ localhost ) ; return $ this ; }
Create a Drupal login link.

@param null $user
The drupal login user.
@param null $path
The path to redirect to after login.
@param bool $localhost
Run the command on localhost.
@return $this
Create a Drupal login link .