public function generateToken(Section $section) { $section->generateToken(); $this->sectionManager->save($section); return $section->getToken(); }