request = $requestStack->getCurrentRequest(); $this->security = $security; } /** * @param RightInterface $requestedRight */ public function create(?RightInterface $requestedRight = null) { return new SecureSourceCreator($this->request, $this->security); } }