using service definition instead auf autowiring

This commit is contained in:
2024-09-13 02:31:14 +02:00
parent 6c608c5d00
commit 94165b3147
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ namespace Magdev\RedmineBundle\DependencyInjection;
use Magdev\RedmineBundle\Client\RedmineClient;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
/**
* @author Marco Grätsch <magdev3.0@gmail.com>
@@ -32,5 +33,8 @@ final class MagdevRedmineExtension extends Extension
$container->setAlias(RedmineClient::class, $id);
}
}
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yaml');
}
}

View File

@@ -0,0 +1,3 @@
services:
Magdev\RedmineBundle\Client\RedmineClient:
arguments: ['@cache.adapter.redis_tag_aware']