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

overblog / GraphQLBundle / 5108321640

pending completion
5108321640

push

github

web-flow
Merge pull request #1122 from sparklink-pro/master

Update webonyx / Cleanup / Fix tests

4263 of 4332 relevant lines covered (98.41%)

39.03 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';
41✔
17
    }
18

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

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

30
    protected function getResolverServiceID(): string
31
    {
32
        return 'overblog_graphql.query_resolver';
41✔
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