42 public function __invoke(Request $request, Response $response, $args)
45 $this->rule = \Paperyard\Models\Rule\Subjects::find((
int)$request->getAttribute(
'ruleId'));
48 if ($this->rule === null) {
49 $this->flash->addMessage(
'error', _(
'Rule not found'));
50 return $response->withRedirect(
'/rules/subjects');
54 $this->view->render($response,
'rule/subject_details.twig', $this->
render());
65 'plugins' => parent::getPlugins(),
66 'rule' => $this->rule,
67 'languageFlag' => parent::getLanguageFlag()
registerPlugin($name, $type=PluginType::NORMAL)
__construct(Twig $view, LoggerInterface $logger, Messages $flash)
__invoke(Request $request, Response $response, $args)