public function __construct(Config $config, UserService $userService, MailNotifyService $mailNotifyService) { $this->notifyEnable = $config->get('notification.enabled') && $config->get('mail.mail_enable'); $this->userService = $userService; $this->mailNotifyService = $mailNotifyService; }