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

api-platform / core / 10638675968

30 Aug 2024 08:19PM UTC coverage: 74.332% (+10.4%) from 63.901%
10638675968

push

github

web-flow
chore: deprecations (#6563)

* chore: deprecations

* chore: deprecations

5 of 5 new or added lines in 3 files covered. (100.0%)

100 existing lines in 9 files now uncovered.

3226 of 4340 relevant lines covered (74.33%)

77.04 hits per line

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

0.0
/src/Util/RequestAttributesExtractor.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\Util;
15

16
use Symfony\Component\HttpFoundation\Request;
17

18
/**
19
 * Extracts data used by the library form a Request instance.
20
 *
21
 * @deprecated use \ApiPlatform\State\Util\RequestAttributesExtractor
22
 *
23
 * @author Kévin Dunglas <dunglas@gmail.com>
24
 */
25
final class RequestAttributesExtractor
26
{
27
    private function __construct()
28
    {
29
    }
×
30

31
    /**
32
     * Extracts resource class, operation name and format request attributes. Returns an empty array if the request does
33
     * not contain required attributes.
34
     */
35
    public static function extractAttributes(Request $request): array
36
    {
UNCOV
37
        return AttributesExtractor::extractAttributes($request->attributes->all());
×
38
    }
39
}
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