Skip to content

Commit 0c877e3

Browse files
authored
Feat/ignore unknown queue counts (#284)
* chore: codestyle * feat: ignore transports without count support
1 parent b349658 commit 0c877e3

23 files changed

Lines changed: 39 additions & 44 deletions

src/Command/UpdateComposerPluginsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class UpdateComposerPluginsCommand extends Command
2121
private readonly Application $application;
2222

2323
public function __construct(
24-
#[Autowire('%kernel.project_dir%')]
24+
#[Autowire(param: 'kernel.project_dir')]
2525
private readonly string $projectDir,
2626
private readonly KernelPluginLoader $pluginLoader,
2727
) {

src/Components/Elasticsearch/AdminInfoSubscriberEventListener.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
use Symfony\Component\HttpKernel\Event\ResponseEvent;
1010

1111
#[AutoconfigureTag('kernel.event_listener')]
12-
final class AdminInfoSubscriberEventListener
12+
final readonly class AdminInfoSubscriberEventListener
1313
{
1414
public function __construct(
15-
#[Autowire('%frosh_tools.elasticsearch.enabled%')]
16-
private readonly bool $elasticsearchEnabled,
15+
#[Autowire(param: 'frosh_tools.elasticsearch.enabled')]
16+
private bool $elasticsearchEnabled,
1717
) {}
18-
1918
public function __invoke(ResponseEvent $event): void
2019
{
2120
if ($event->getRequest()->attributes->get('_route') !== 'api.info.config') {

src/Components/Elasticsearch/ElasticsearchManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ElasticsearchManager
1919
{
2020
public function __construct(
2121
private readonly Client $client,
22-
#[Autowire('%frosh_tools.elasticsearch.enabled%')]
22+
#[Autowire(param: 'frosh_tools.elasticsearch.enabled')]
2323
private readonly bool $enabled,
2424
private readonly ElasticsearchIndexer $indexer,
2525
private readonly MessageBusInterface $messageBus,

src/Components/Health/Checker/HealthChecker/ProductionChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class ProductionChecker implements HealthCheckerInterface, CheckerInterface
1313
{
1414
public function __construct(
15-
#[Autowire('%kernel.environment%')]
15+
#[Autowire(param: 'kernel.environment')]
1616
private readonly string $environment,
1717
) {}
1818

src/Components/Health/Checker/HealthChecker/SwagSecurityChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SwagSecurityChecker implements HealthCheckerInterface, CheckerInterface
2222
public function __construct(
2323
private readonly Connection $connection,
2424
private readonly KernelInterface $kernel,
25-
#[Autowire('%kernel.shopware_version%')]
25+
#[Autowire(param: 'kernel.shopware_version')]
2626
private readonly string $shopwareVersion,
2727
private readonly CacheInterface $cacheObject,
2828
#[Autowire(lazy: true)]

src/Components/Health/Checker/HealthChecker/SystemInfoChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class SystemInfoChecker implements HealthCheckerInterface, CheckerInterface
1414
{
1515
public function __construct(
16-
#[Autowire('%kernel.project_dir%')]
16+
#[Autowire(param: 'kernel.project_dir')]
1717
private readonly string $projectDir,
1818
) {}
1919

src/Components/Health/Checker/PerformanceChecker/AdminWorkerChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class AdminWorkerChecker implements PerformanceCheckerInterface, CheckerInterface
1313
{
1414
public function __construct(
15-
#[Autowire('%shopware.admin_worker.enable_admin_worker%')]
15+
#[Autowire(param: 'shopware.admin_worker.enable_admin_worker')]
1616
private readonly bool $adminWorkerEnabled,
1717
) {}
1818

src/Components/Health/Checker/PerformanceChecker/CompressionMethodChecker.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class CompressionMethodChecker implements PerformanceCheckerInterface, CheckerIn
1212
public const DOCUMENTATION_URL = 'https://developer.shopware.com/docs/guides/hosting/performance/performance-tweaks.html#using-zstd-instead-of-gzip-for-compression';
1313

1414
public function __construct(
15-
#[Autowire('%kernel.shopware_version%')]
15+
#[Autowire(param: 'kernel.shopware_version')]
1616
public readonly string $shopwareVersion,
17-
#[Autowire('%shopware.cache.cache_compression%')]
17+
#[Autowire(param: 'shopware.cache.cache_compression')]
1818
public readonly bool $cacheCompressionEnabled,
19-
#[Autowire('%shopware.cache.cache_compression_method%')]
19+
#[Autowire(param: 'shopware.cache.cache_compression_method')]
2020
public readonly string $cacheCompressionMethod,
21-
#[Autowire('%shopware.cart.compress%')]
21+
#[Autowire(param: 'shopware.cart.compress')]
2222
public readonly bool $cartCompressionEnabled,
23-
#[Autowire('%shopware.cart.compression_method%')]
23+
#[Autowire(param: 'shopware.cart.compression_method')]
2424
public readonly string $cartCompressionMethod,
2525
) {}
2626

src/Components/Health/Checker/PerformanceChecker/FixCacheIdSetChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class FixCacheIdSetChecker implements PerformanceCheckerInterface, CheckerInterface
1414
{
1515
public function __construct(
16-
#[Autowire('%kernel.shopware_version%')]
16+
#[Autowire(param: 'kernel.shopware_version')]
1717
protected string $shopwareVersion,
1818
) {}
1919

src/Components/Health/Checker/PerformanceChecker/IncrementStorageChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class IncrementStorageChecker implements PerformanceCheckerInterface, CheckerInterface
1313
{
1414
public function __construct(
15-
#[Autowire('%shopware.increment.user_activity.type%')]
15+
#[Autowire(param: 'shopware.increment.user_activity.type')]
1616
private readonly string $userActivity,
17-
#[Autowire('%shopware.increment.message_queue.type%')]
17+
#[Autowire(param: 'shopware.increment.message_queue.type')]
1818
private readonly string $queueActivity,
1919
) {}
2020

0 commit comments

Comments
 (0)