com\setasign\SetaFramework\Bootstrap

DomainName Class DomainName

File: /SetaFramework/src/Bootstrap/DomainName.php

Just a simple container for the domain name. Can be used to only inject the domain name instead of the full request.

If the project is available under multiple domain names only the actual used one will be returned.

If the application is currently run in cli context the helper will try to use the configured domain in "bootstrap.domain" instead.

Class hierarchy

Implements

Summary

Properties

$domainName

private string DomainName::$domainName

Methods

__construct()

public DomainName::__construct (
Bootstrap $bootstrap,
?\Psr\Http\Message\ServerRequestInterface $request = null
)
Parameters
$bootstrap : Bootstrap
 
$request : ?\Psr\Http\Message\ServerRequestInterface
 
Exceptions

Throws \com\setasign\SetaFramework\Exception

__toString()

public DomainName::__toString (
void
): string

get()

public DomainName::get (
void
): string