TwistPHP Documentation

__construct

File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

__constructStart up an instance of Routes, pass in the main domain name for the instance. Routes registered to this instance will only be served if the domain or IP matches those entered as an alias or main domain.
If null is passed in these routes will be served only if a domain/alias match has not been found.

Parameters

Name Type Description
[$strMainListener = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strMainListener null;

//Call the function __construct with the example vars
Twist::Route() -> __construct($strMainListener);