Module
- Full name:
\PhalconKit\Mvc\Module - This class implements:
ModuleDefinitionInterface - This class is an Abstract class
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
NAME_FRONTEND | public | 'frontend' | |
NAME_ADMIN | public | 'admin' | |
NAME_API | public | 'api' | |
NAME_OAUTH2 | public | 'oauth2' |
Properties
name
public string $name
config
public ?\PhalconKit\Bootstrap\Config $config
dispatcher
public ?\PhalconKit\Mvc\Dispatcher $dispatcher
loader
public ?\Phalcon\Autoload\Loader $loader
router
public ?\PhalconKit\Mvc\Router $router
view
public ?\PhalconKit\Mvc\View $view
url
public ?\PhalconKit\Mvc\Url $url
Methods
registerAutoloaders
Registers an autoloader related to the frontend module
public registerAutoloaders(?\Phalcon\Di\DiInterface $container = null): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$container | ?\Phalcon\Di\DiInterface |
registerServices
Registers services related to the module
public registerServices(\Phalcon\Di\DiInterface $container): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$container | \Phalcon\Di\DiInterface |
getServices
public getServices(?\Phalcon\Di\DiInterface $container = null): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$container | ?\Phalcon\Di\DiInterface |
setServices
public setServices(\Phalcon\Di\DiInterface $container): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$container | \Phalcon\Di\DiInterface |
getNamespaces
public getNamespaces(): array
getDefaultNamespace
public getDefaultNamespace(): string
getViewsDir
public getViewsDir(): array
getDirname
public getDirname(): string
getNamespace
public getNamespace(): string