Property | Type | Description | |
---|---|---|---|
$active_cabin | string | ||
$cabinIndex | string | ||
$mypath | Current request path | ||
$path | string | ||
$patternPrefix | string |
Property | Type | Description | |
---|---|---|---|
$CSPBuilder | |||
$cabin | array | ||
$databases | |||
$lens |
Method | Description | |
---|---|---|
__construct ( array $cabin = [], |
AutoPilot constructor. | |
isActiveCabinKey ( string $cabinKey = '*', boolean $https_only = false, string $scheme = '', string $activeHost = '', string $uri = '' ) : boolean | Does a given cabin key match the current HTTP host, port, and path? | |
isHTTPSConnection ( string $scheme = '' ) : boolean | Is this user currently connected over HTTPS? | |
makePath ( string $string ) : string | Replace {token}s with their regex stand-ins. | |
route ( ) | Actually serve the HTTP request | |
setActiveCabin ( array $cabin, string $prefix ) | Set the active cabin | |
testCabinForUrl ( string $url ) : string | Which Cabin does this URL belong to? | |
testLanding ( string $path, string $uri, array &$args = [], boolean $needsPrep = false ) : boolean | Test a path against a URI |
Method | Description | |
---|---|---|
forceHTTPS ( string $scheme = '' ) : boolean | Do not allow insecure HTTP request to proceed | |
loadInjectedRoutes ( ) : self | See Gadgets::injectRoutes() | |
serve ( array $route, array $args = [] ) : mixed | Actually serve the routes. Called by route() above. | |
serveFallback ( ) : mixed | This serves the fallback route, if it's defined. |
public __construct ( array $cabin = [], |
||
$cabin | array | |
$lens | (optional) | |
$databases | array | (optional) |
protected static forceHTTPS ( string $scheme = '' ) : boolean | ||
$scheme | string | |
return | boolean |
public static isHTTPSConnection ( string $scheme = '' ) : boolean | ||
$scheme | string | |
return | boolean |
protected loadInjectedRoutes ( ) : self | ||
return | self |
protected serveFallback ( ) : mixed | ||
return | mixed |
public setActiveCabin ( array $cabin, string $prefix ) | ||
$cabin | array | |
$prefix | string |
public testCabinForUrl ( string $url ) : string | ||
$url | string | |
return | string |
protected CSPBuilder,ParagonIE\CSPBuilder $CSPBuilder | ||
return |