cronJobKey.'_' . $key; } return $this->cronJobKey.'_' . $key . '_' . $period; } /** * Prepare message * @param array $variables * @param string $message * @return string */ public function prepareMessage($variables, $message){ return preg_replace_callback('/\\{\\{([^{}]+)\}\\}/i', function($matches) use ($variables){ return array_key_exists($matches[1], $variables)? $variables[$matches[1]] : $matches[1]; }, $message); } }