Modules - Gimanh/ZXC_PHP GitHub Wiki
Description
Every config for module is array which must have 2 keys class
and options
.
class
- lets know which class will be called for initialise.
options
- lets know which options will be used for module instance.
Every config must be located in ZXC/Module
section.
'ZXC' => [
'Modules' => [
'Mailer' => [
'class' => 'ZXC\Modules\Mailer\Mail',
'options' => [
'server' => 'smtp.server',
'port' => 465,
'ssl' => true,
'user' => 'userLogin',
'password' => '123456',
'from' => 'zxc_php',
'fromEmail' => '[email protected]'
]
]
....
//Othe module config
]
]