FilePath (string)
Less than 1 minute
FilePath (string)
Enum representing various application file path types.
enum FilePath: stringCases
ROOT
The root directory of the application.
case ROOT = 'root'APPLICATION
The directory containing the main application code.
case APPLICATION = 'app'CONFIG
The directory for configuration files.
case CONFIG = 'config'MODEL
case MODEL = 'model'VIEW
case VIEW = 'view'CONTROLLER
case CONTROLLER = 'controller'HELPER
case HELPER = 'helper'SERVICE
case SERVICE = 'service'SUPPORT
case SUPPORT = 'support'LIB
case LIB = 'library'PUBLIC
case PUBLIC = 'public'RUNTIME
case RUNTIME = 'runtime'DB
case DB = 'db'EVENT
case EVENT = 'event'LISTENER
case LISTENER = 'listener'MIDDLEWARE
case MIDDLEWARE = 'middleware'EXCEPTION
case EXCEPTION = 'exception'Methods
fromAppNamespace
Maps an application namespace string to its corresponding FilePath enum value.
public fromAppNamespace(string $namespace): ?selfParameters
| Parameter | Type | Description |
|---|---|---|
$namespace | string | The application namespace (e.g., 'Model', 'Controller'). |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000