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