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

api-platform / core / 16347430138

17 Jul 2025 02:09PM UTC coverage: 0.0%. First build
16347430138

Pull #7299

github

web-flow
Merge f8d564db8 into b52187d91
Pull Request #7299: feat(symfony): stop watch system provider/processor

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

0 of 51704 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/src/Symfony/Bundle/State/TraceableProcessor.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\Bundle\State;
15

16
use ApiPlatform\State\ProcessorInterface;
17
use Symfony\Component\Stopwatch\Stopwatch;
18

19
final class TraceableProcessor implements ProcessorInterface
20
{
21
    public function __construct(private readonly ProcessorInterface $processor, private readonly Stopwatch $stopwatch, private readonly string $name)
22
    {
NEW
23
    }
×
24

25
    public function process(mixed ...$args): mixed
26
    {
NEW
27
        $this->stopwatch->start($this->name);
×
NEW
28
        $result = $this->processor->process(...$args);
×
NEW
29
        $this->stopwatch->stop($this->name);
×
30

NEW
31
        return $result;
×
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

© 2025 Coveralls, Inc