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

api-platform / core / 7419999641

05 Jan 2024 09:10AM UTC coverage: 37.264%. Remained the same
7419999641

push

github

soyuka
cs: various fixes

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

1 existing line in 1 file now uncovered.

10304 of 27651 relevant lines covered (37.26%)

28.77 hits per line

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

0.0
/src/deprecation.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
$deprecatedClassesWithAliases = [
×
NEW
15
    ApiPlatform\HttpCache\EventListener\AddHeadersListener::class => \ApiPlatform\Symfony\EventListener\AddHeadersListener::class,
×
NEW
16
    ApiPlatform\HttpCache\EventListener\AddTagsListener::class => \ApiPlatform\Symfony\EventListener\AddTagsListener::class,
×
UNCOV
17
];
×
18

19
spl_autoload_register(function ($className) use ($deprecatedClassesWithAliases): void {
×
20
    if (isset($deprecatedClassesWithAliases[$className])) {
×
21
        trigger_deprecation('api-platform/core', '4.0', sprintf('The class %s is deprecated, use %s instead.', $className, $deprecatedClassesWithAliases[$className]));
×
22

23
        class_alias($deprecatedClassesWithAliases[$className], $className);
×
24

25
        return;
×
26
    }
27
});
×
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