diff --git a/src/Client/RedmineClient.php b/src/Client/RedmineClient.php index cc2a665..8b2c39f 100644 --- a/src/Client/RedmineClient.php +++ b/src/Client/RedmineClient.php @@ -6,6 +6,7 @@ use Redmine\Client\Psr18Client; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\HttpFactory as GuzzleHttpFactory; use Symfony\Contracts\Cache\TagAwareCacheInterface; +use Symfony\Component\DependencyInjection\Attribute\Autowire; final class RedmineClient { @@ -14,6 +15,7 @@ final class RedmineClient private ?string $apiKey = null; public function __construct( + #[Autowire(service: 'redmine_api_cache_pool')] private TagAwareCacheInterface $redmineApiCachePool ) {}