$options * @return object * @throws ServiceNotFoundException If unable to resolve the service. * @throws ServiceNotCreatedException If an exception is raised when creating a service. * @throws ContainerExceptionInterface If any other error occurs. */ public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null); }