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

api-platform / core / 15775135891

20 Jun 2025 08:42AM UTC coverage: 22.065% (+0.2%) from 21.876%
15775135891

push

github

soyuka
Merge 4.1

13 of 103 new or added lines in 10 files covered. (12.62%)

868 existing lines in 35 files now uncovered.

11487 of 52060 relevant lines covered (22.06%)

21.72 hits per line

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

0.0
/src/Symfony/Security/Exception/AccessDeniedException.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\Security\Exception;
15

16
use ApiPlatform\Metadata\Exception\HttpExceptionInterface;
17
use Symfony\Component\Security\Core\Exception\AccessDeniedException as ExceptionAccessDeniedException;
18

19
/**
20
 * TODO: deprecate in favor of Metadata.
21
 */
22
final class AccessDeniedException extends ExceptionAccessDeniedException implements HttpExceptionInterface
23
{
24
    public function getStatusCode(): int
25
    {
UNCOV
26
        return 403;
×
27
    }
28

29
    public function getHeaders(): array
30
    {
UNCOV
31
        return [];
×
32
    }
33
}
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