Пример #1
0
 /**
  * Displays the scale levels of a given competency framework for selection.
  *
  * @EXT\Route("/framework/{id}/levels", name="hevinci_pick_level")
  * @EXT\Template
  *
  * @param Competency $framework
  * @return array
  * @throws \LogicException if the competency is not a framework root
  */
 public function levelsAction(Competency $framework)
 {
     if ($framework->getRoot() !== $framework->getId()) {
         throw new \LogicException('Scales are only linked to root competencies');
     }
     return ['scale' => $framework->getScale()];
 }