serviceManager = $serviceManager; return $this; } public function backend($options) { $cmd = "php ".CURRENT_BOOTSTRAP_SCRIPT; $cmd .= ' mail send'; $cmd .= ' --email="'.$options['email'].'"'; $cmd .= ' --name="'.$options['name'].'"'; $cmd .= ' --template="'.$options['template'].'"'; if(isset($options['data'])) { $data = json_encode($options['data']); $cmd .= ' --data=\''.$data.'\''; } $tools = $this->serviceManager->get('Tools'); $tools->execBackend($cmd); return true; } }