protected function getEmailAlertHandler() { $config = new Email(); if (is_file(DATA_DIR . "smtp.yml")) { $config->loadConfig(Yaml::parse(file_get_contents(DATA_DIR . 'smtp.yml'))); } return new EmailAlertHandler($config); }