This can only be called once. To connect to another workspace or with
another credential, use a fresh instance of transport.
What implementation of credentials is supported is transport specific.
public login ( PHPCR\CredentialsInterface $credentials = null, string $workspaceName = null ) : string | ||
$credentials | PHPCR\CredentialsInterface | the credentials to connect with the backend |
$workspaceName | string | The workspace name to connect to. Null means to connect to the default workspace. |
return | string | The workspace name that we connected to. This must be $workspaceName unless that was null, where it is the name of the default workspace. |