/**
  * {@inheritdoc}
  */
 public function create(array $translatable, $name, $languageFrom, $category, $briefing, $languageTo = null, array $options = [], $activity = ProjectInterface::ACTIVITY_TRANSLATION, $workTemplate = null)
 {
     $project = $this->textmasterManager->getProject();
     $project->setName($name)->setActivity($activity)->setLanguageFrom($languageFrom)->setLanguageTo($languageTo)->setCategory($category)->setBriefing($briefing)->setOptions($options)->setWorkTemplate($workTemplate)->setCallback($this->generateProjectCallback());
     $project->save();
     $project->addDocuments($this->generateDocuments($project, $translatable));
     return $project;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function getProject(JobInterface $job)
 {
     return $this->textmasterManager->getProject($job->getProjectId());
 }