PHP 8.3.31
Preview: ContainerLoader.php Size: 929 B
/home/getspomw/royalsquad.us/vendor/symfony/routing/Loader/ContainerLoader.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\Routing\Loader;

use Psr\Container\ContainerInterface;

/**
 * A route loader that executes a service from a PSR-11 container to load the routes.
 *
 * @author Ryan Weaver <ryan@knpuniversity.com>
 */
class ContainerLoader extends ObjectLoader
{
    public function __construct(
        private ContainerInterface $container,
        ?string $env = null,
    ) {
        parent::__construct($env);
    }

    public function supports(mixed $resource, ?string $type = null): bool
    {
        return 'service' === $type && \is_string($resource);
    }

    protected function getObject(string $id): object
    {
        return $this->container->get($id);
    }
}

Directory Contents

Dirs: 2 × Files: 13

Name Size Perms Modified Actions
- drwxrwxrwx 2026-04-21 08:55:18
Edit Download
schema DIR
- drwxrwxrwx 2025-09-17 06:53:20
Edit Download
13.90 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
2.56 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
4.29 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
919 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
929 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.43 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
12.74 KB lrw-r--r-- 2026-04-26 12:29:06
Edit Download
1010 B lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
2.60 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
2.12 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
3.18 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
17.62 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
11.81 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download

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