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

api-platform / core / 7142557150

08 Dec 2023 02:28PM UTC coverage: 36.003% (-1.4%) from 37.36%
7142557150

push

github

web-flow
fix(jsonld): remove link to ApiDocumentation when doc is disabled (#6029)

0 of 1 new or added line in 1 file covered. (0.0%)

2297 existing lines in 182 files now uncovered.

9992 of 27753 relevant lines covered (36.0%)

147.09 hits per line

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

0.0
/src/Symfony/GraphQl/Resolver/Factory/DataCollectorResolverFactory.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Symfony\GraphQl\Resolver\Factory;
15

16
use ApiPlatform\GraphQl\Resolver\Factory\ResolverFactoryInterface;
17
use ApiPlatform\Metadata\GraphQl\Operation;
18
use GraphQL\Type\Definition\ResolveInfo;
19
use Symfony\Component\HttpFoundation\RequestStack;
20

21
final class DataCollectorResolverFactory implements ResolverFactoryInterface
22
{
23
    public function __construct(private readonly ResolverFactoryInterface $resolverFactory, private readonly ?RequestStack $requestStack)
24
    {
UNCOV
25
    }
×
26

27
    public function __invoke(string $resourceClass = null, string $rootClass = null, Operation $operation = null): callable
28
    {
UNCOV
29
        return function (?array $source, array $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass, $operation) {
×
UNCOV
30
            if ($this->requestStack && null !== $request = $this->requestStack->getCurrentRequest()) {
×
UNCOV
31
                $request->attributes->set(
×
UNCOV
32
                    '_graphql_args',
×
UNCOV
33
                    [$resourceClass => $args] + $request->attributes->get('_graphql_args', [])
×
UNCOV
34
                );
×
35
            }
36

UNCOV
37
            return ($this->resolverFactory)($resourceClass, $rootClass, $operation)($source, $args, $context, $info);
×
UNCOV
38
        };
×
39
    }
40
}
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

© 2026 Coveralls, Inc