Merge pull request #348 from necrox87/patch-1
Added classMap for MailService
This commit is contained in:
@ -12,7 +12,8 @@
|
|||||||
- Enh #331: Added Ukrainian translations (kwazaro)
|
- Enh #331: Added Ukrainian translations (kwazaro)
|
||||||
- Enh #324: Added option to restrict user assignments to roles only (CheckeredFlag)
|
- Enh #324: Added option to restrict user assignments to roles only (CheckeredFlag)
|
||||||
- Enh #224: Added option to require consent (eseperio)
|
- Enh #224: Added option to require consent (eseperio)
|
||||||
|
- Enh: Added classMap for MailService (necrox87)
|
||||||
|
|
||||||
## 1.5.0 April 19, 2019
|
## 1.5.0 April 19, 2019
|
||||||
- Fix: Fix condition in EmailChangeService (it was always false) (borisaeric)
|
- Fix: Fix condition in EmailChangeService (it was always false) (borisaeric)
|
||||||
- Fix #198: Updated translations by quique, bizley, TonisOrmisson, guogan, Dezinger, maxxer, wautvda, mrbig00, fabiomlferreira, WeeSee
|
- Fix #198: Updated translations by quique, bizley, TonisOrmisson, guogan, Dezinger, maxxer, wautvda, mrbig00, fabiomlferreira, WeeSee
|
||||||
|
|||||||
@ -24,6 +24,8 @@ The following are the classes that you can override throughout that attribute:
|
|||||||
- LoginForm
|
- LoginForm
|
||||||
- SettingsForm
|
- SettingsForm
|
||||||
- RecoveryForm
|
- RecoveryForm
|
||||||
|
- Service Classes
|
||||||
|
- MailService
|
||||||
|
|
||||||
|
|
||||||
How to Override
|
How to Override
|
||||||
@ -52,6 +54,8 @@ $defaults = [
|
|||||||
'LoginForm' => 'Da\User\Form\LoginForm',
|
'LoginForm' => 'Da\User\Form\LoginForm',
|
||||||
'SettingsForm' => 'Da\User\Form\SettingsForm',
|
'SettingsForm' => 'Da\User\Form\SettingsForm',
|
||||||
'RecoveryForm' => 'Da\User\Form\RecoveryForm',
|
'RecoveryForm' => 'Da\User\Form\RecoveryForm',
|
||||||
|
// --- services
|
||||||
|
'MailService' => 'Da\User\Service\MailService',
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -325,6 +325,8 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'LoginForm' => 'Da\User\Form\LoginForm',
|
'LoginForm' => 'Da\User\Form\LoginForm',
|
||||||
'SettingsForm' => 'Da\User\Form\SettingsForm',
|
'SettingsForm' => 'Da\User\Form\SettingsForm',
|
||||||
'RecoveryForm' => 'Da\User\Form\RecoveryForm',
|
'RecoveryForm' => 'Da\User\Form\RecoveryForm',
|
||||||
|
// --- services
|
||||||
|
'MailService' => 'Da\User\Service\MailService',
|
||||||
];
|
];
|
||||||
|
|
||||||
$routes = [
|
$routes = [
|
||||||
@ -349,6 +351,9 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'SettingsForm',
|
'SettingsForm',
|
||||||
'RecoveryForm',
|
'RecoveryForm',
|
||||||
],
|
],
|
||||||
|
'Da\User\Service' => [
|
||||||
|
'MailService',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$mapping = array_merge($defaults, $userClassMap);
|
$mapping = array_merge($defaults, $userClassMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user