IMvcApplication
extends
IApplication
in
MVC Application Interface
Extends the base application interface with MVC-specific capabilities including routing and dependency injection container access.
Table of Contents
Methods
- getContainer() : IContainer
- Get the dependency injection container
- getRegistryObject() : mixed
- getRouter() : Router
- Get the application router instance
- getSetting() : mixed
- hasContainer() : bool
- Check if a dependency injection container has been configured
- run() : mixed
- Generic run method.
- setRegistryObject() : mixed
- setSetting() : void
Methods
getContainer()
Get the dependency injection container
public
getContainer() : IContainer
Tags
Return values
IContainergetRegistryObject()
public
getRegistryObject(string $name) : mixed
Parameters
- $name : string
getRouter()
Get the application router instance
public
getRouter() : Router
Return values
RoutergetSetting()
public
getSetting(string $section, string $name) : mixed
Parameters
- $section : string
- $name : string
hasContainer()
Check if a dependency injection container has been configured
public
hasContainer() : bool
Return values
boolrun()
Generic run method.
public
run([array<string|int, mixed> $argv = [] ]) : mixed
Parameters
- $argv : array<string|int, mixed> = []
setRegistryObject()
public
setRegistryObject(string $name, mixed $object) : mixed
Parameters
- $name : string
- $object : mixed
setSetting()
public
setSetting(string $section, string $name, string $value) : void
Parameters
- $section : string
- $name : string
- $value : string