PresenterFactory
class PresenterFactory implements IPresenterFactory
Default presenter loader.
Methods
__construct(callable|null $factory = null)
No description
createPresenter(string $name)
Creates new presenter instance.
string
getPresenterClass(string $name)
Generates and checks presenter class name.
setMapping(array $mapping)
Sets mapping as pairs [module => mask]
string
formatPresenterClass(string $presenter)
Formats presenter class name from its name.
setAliases(array $aliases)
Sets pairs [alias => destination]
string
getAlias(string $alias)
No description
Details
at line 36
__construct(callable|null $factory = null)
No description
at line 45
IPresenter
createPresenter(string $name)
Creates new presenter instance.
at line 55
string
getPresenterClass(string $name)
Generates and checks presenter class name.
at line 81
PresenterFactory
setMapping(array $mapping)
Sets mapping as pairs [module => mask]
at line 105
string
formatPresenterClass(string $presenter)
internal |
Formats presenter class name from its name.
at line 126
PresenterFactory
setAliases(array $aliases)
Sets pairs [alias => destination]
at line 133
string
getAlias(string $alias)
No description