PHP 8.3.31
Preview: AliasConfigurator.php Size: 1.15 KB
/home/getspomw/royalsquad.us/vendor/symfony/routing/Loader/Configurator/AliasConfigurator.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\Configurator;

use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\Routing\Alias;

class AliasConfigurator
{
    public function __construct(
        private Alias $alias,
    ) {
    }

    /**
     * Whether this alias is deprecated, that means it should not be called anymore.
     *
     * @param string $package The name of the composer package that is triggering the deprecation
     * @param string $version The version of the package that introduced the deprecation
     * @param string $message The deprecation message to use
     *
     * @return $this
     *
     * @throws InvalidArgumentException when the message template is invalid
     */
    public function deprecate(string $package, string $version, string $message): static
    {
        $this->alias->setDeprecated($package, $version, $message);

        return $this;
    }
}

Directory Contents

Dirs: 1 × Files: 6

Name Size Perms Modified Actions
Traits DIR
- drwxrwxrwx 2026-04-21 17:57:39
Edit Download
1.15 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
3.42 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
2.76 KB lrw-r--r-- 2026-04-25 10:28:00
Edit Download
1.91 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
1.45 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download
2.04 KB lrw-rw-rw- 2025-09-17 06:53:20
Edit Download

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