• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

overblog / GraphQLBundle / 10437663729

01 Jul 2024 01:58PM UTC coverage: 98.364%. Remained the same
10437663729

push

github

web-flow
Merge pull request #1189 from jerowork/master

Support Symfony 7.1

4330 of 4402 relevant lines covered (98.36%)

40.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/src/DependencyInjection/Compiler/QueryTaggedServiceMappingPass.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
6

7
use InvalidArgumentException;
8

9
use function is_string;
10
use function sprintf;
11

12
class QueryTaggedServiceMappingPass extends TaggedServiceMappingPass
13
{
14
    protected function getTagName(): string
15
    {
16
        return 'overblog_graphql.query';
42✔
17
    }
18

19
    protected function checkRequirements(string $id, array $tag): void
20
    {
21
        parent::checkRequirements($id, $tag);
42✔
22

23
        if (isset($tag['method']) && !is_string($tag['method'])) {
42✔
24
            throw new InvalidArgumentException(
×
25
                sprintf('Service tagged "%s" must have valid "method" argument.', $id)
×
26
            );
27
        }
28
    }
42✔
29

30
    protected function getResolverServiceID(): string
31
    {
32
        return 'overblog_graphql.query_resolver';
42✔
33
    }
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc