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

api-platform / core / 12791610599

15 Jan 2025 03:28PM UTC coverage: 61.963%. Remained the same
12791610599

Pull #6910

github

web-flow
Merge 053743a81 into 9b0738072
Pull Request #6910: fix(openapi): typing issue with `openapiContext` in `#[ApiProperty]`

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

1 existing line in 1 file now uncovered.

11475 of 18519 relevant lines covered (61.96%)

34.32 hits per line

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

0.0
/src/Action/NotExposedAction.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\Action;
15

16
use ApiPlatform\Exception\NotExposedHttpException;
17
use Symfony\Component\HttpFoundation\Request;
18

19
/**
20
 * An action which always returns HTTP 404 Not Found with an explanation for why the operation is not exposed.
21
 *
22
 * @deprecated use ApiPlatform\Symfony\Action\NotExposedAction
23
 */
24
final class NotExposedAction
25
{
26
    public function __invoke(Request $request): never
27
    {
28
        $message = 'This route does not aim to be called.';
×
29
        if ('api_genid' === $request->attributes->get('_route')) {
×
30
            $message = 'This route is not exposed on purpose. It generates an IRI for a collection resource without identifier nor item operation.';
×
31
        }
32

33
        throw new NotExposedHttpException($message);
×
34
    }
35
}
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