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

api-platform / core / 20133637470

11 Dec 2025 12:48PM UTC coverage: 25.196% (-0.002%) from 25.198%
20133637470

push

github

web-flow
fix(symfony): do not load docs routes if docs disabled (#7448)

Co-authored-by: soyuka <soyuka@users.noreply.github.com>

0 of 18 new or added lines in 4 files covered. (0.0%)

14335 existing lines in 465 files now uncovered.

14578 of 57859 relevant lines covered (25.2%)

28.9 hits per line

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

100.0
/src/Symfony/Bundle/Resources/config/http_cache.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 Symfony\Component\DependencyInjection\Loader\Configurator;
15

UNCOV
16
return function (ContainerConfigurator $container) {
8✔
UNCOV
17
    $services = $container->services();
8✔
18

UNCOV
19
    $services->set('api_platform.http_cache.processor.add_headers', 'ApiPlatform\HttpCache\State\AddHeadersProcessor')
8✔
UNCOV
20
        ->decorate('api_platform.state_processor.respond', null, 0)
8✔
UNCOV
21
        ->args([
8✔
UNCOV
22
            service('api_platform.http_cache.processor.add_headers.inner'),
8✔
UNCOV
23
            '%api_platform.http_cache.etag%',
8✔
UNCOV
24
            '%api_platform.http_cache.max_age%',
8✔
UNCOV
25
            '%api_platform.http_cache.shared_max_age%',
8✔
UNCOV
26
            '%api_platform.http_cache.vary%',
8✔
UNCOV
27
            '%api_platform.http_cache.public%',
8✔
UNCOV
28
        ]);
8✔
UNCOV
29
};
8✔
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