Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										46
									
								
								vendor/symfony/routing/Attribute/DeprecatedAlias.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								vendor/symfony/routing/Attribute/DeprecatedAlias.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,46 @@
 | 
			
		||||
<?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\Attribute;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * This class is meant to be used in {@see Route} to define an alias for a route.
 | 
			
		||||
 */
 | 
			
		||||
class DeprecatedAlias
 | 
			
		||||
{
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        private string $aliasName,
 | 
			
		||||
        private string $package,
 | 
			
		||||
        private string $version,
 | 
			
		||||
        private string $message = '',
 | 
			
		||||
    ) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getMessage(): string
 | 
			
		||||
    {
 | 
			
		||||
        return $this->message;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getAliasName(): string
 | 
			
		||||
    {
 | 
			
		||||
        return $this->aliasName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getPackage(): string
 | 
			
		||||
    {
 | 
			
		||||
        return $this->package;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getVersion(): string
 | 
			
		||||
    {
 | 
			
		||||
        return $this->version;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user