security = $security; $this->reminderStore = $reminderStore; } public function getFunctions() { return [ new TwigFunction('sov_reminders', [$this, 'getReminders']), ]; } public function getFilters() { return []; } public function getReminders($params) { return $this->reminderStore->get(array_merge( [ 'user' => $this->security->getUser() ], $params) ); } }