BasePathDetector
- Full name:
\Codefy\Framework\Support\BasePathDetector
- This class is marked as final and can't be subclassed
- This class is a Final class
Properties
server
phpSapi
Methods
__construct
The constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$server | array|null | The SERVER data to use. |
$phpSapi | string|null | The PHP_SAPI value. |
getBasePath
Calculate the url base path.
Return Value:
The base path.
getBasePathByScriptName
Return basePath for built-in server.
Parameters:
Parameter | Type | Description |
---|---|---|
$server | array | The SERVER data to use. |
Return Value:
The base path.
getBasePathByRequestUri
Return basePath for apache server.
Parameters:
Parameter | Type | Description |
---|---|---|
$server | array | The SERVER data to use. |
Return Value:
The base path.
Automatically generated on 2025-10-13