PHP 8.3.30
Preview: TraceableControllerResolver.php Size: 930 B
/home/getspomw/.trash/vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Stopwatch\Stopwatch;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class TraceableControllerResolver implements ControllerResolverInterface
{
    public function __construct(
        private ControllerResolverInterface $resolver,
        private Stopwatch $stopwatch,
    ) {
    }

    public function getController(Request $request): callable|false
    {
        $e = $this->stopwatch->start('controller.get_callable');

        try {
            return $this->resolver->getController($request);
        } finally {
            $e->stop();
        }
    }
}

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
- drwxrwxrwx 2026-04-19 11:45:35
Edit Download
6.00 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
838 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.13 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
1.26 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
9.49 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
1.34 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
1.83 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
1.90 KB lrw-r--r-- 2026-04-19 11:42:37
Edit Download
1009 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
930 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
713 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).