public function supports(mixed $resource, ?string $type = null) : bool { return 'service' === $type && \is_string($resource); }