File tree Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -34,25 +34,25 @@ interface UrlGeneratorInterface extends RequestContextAwareInterface
34
34
/**
35
35
* Generates an absolute URL, e.g. "http://example.com/dir/file".
36
36
*/
37
- const ABSOLUTE_URL = 0 ;
37
+ public const ABSOLUTE_URL = 0 ;
38
38
39
39
/**
40
40
* Generates an absolute path, e.g. "/dir/file".
41
41
*/
42
- const ABSOLUTE_PATH = 1 ;
42
+ public const ABSOLUTE_PATH = 1 ;
43
43
44
44
/**
45
45
* Generates a relative path based on the current request path, e.g. "../parent-file".
46
46
*
47
47
* @see UrlGenerator::getRelativePath()
48
48
*/
49
- const RELATIVE_PATH = 2 ;
49
+ public const RELATIVE_PATH = 2 ;
50
50
51
51
/**
52
52
* Generates a network path, e.g. "//example.com/dir/file".
53
53
* Such reference reuses the current scheme but specifies the host.
54
54
*/
55
- const NETWORK_PATH = 3 ;
55
+ public const NETWORK_PATH = 3 ;
56
56
57
57
/**
58
58
* Generates a URL or path for a specific route based on the given parameters.
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ class XmlFileLoader extends FileLoader
31
31
use LocalizedRouteTrait;
32
32
use PrefixTrait;
33
33
34
- const NAMESPACE_URI = 'http://symfony.com/schema/routing ' ;
35
- const SCHEME_PATH = '/schema/routing/routing-1.0.xsd ' ;
34
+ public const NAMESPACE_URI = 'http://symfony.com/schema/routing ' ;
35
+ public const SCHEME_PATH = '/schema/routing/routing-1.0.xsd ' ;
36
36
37
37
/**
38
38
* Loads an XML file.
Original file line number Diff line number Diff line change 23
23
*/
24
24
class TraceableUrlMatcher extends UrlMatcher
25
25
{
26
- const ROUTE_DOES_NOT_MATCH = 0 ;
27
- const ROUTE_ALMOST_MATCHES = 1 ;
28
- const ROUTE_MATCHES = 2 ;
26
+ public const ROUTE_DOES_NOT_MATCH = 0 ;
27
+ public const ROUTE_ALMOST_MATCHES = 1 ;
28
+ public const ROUTE_MATCHES = 2 ;
29
29
30
30
protected $ traces ;
31
31
Original file line number Diff line number Diff line change 28
28
*/
29
29
class UrlMatcher implements UrlMatcherInterface, RequestMatcherInterface
30
30
{
31
- const REQUIREMENT_MATCH = 0 ;
32
- const REQUIREMENT_MISMATCH = 1 ;
33
- const ROUTE_MATCH = 2 ;
31
+ public const REQUIREMENT_MATCH = 0 ;
32
+ public const REQUIREMENT_MISMATCH = 1 ;
33
+ public const ROUTE_MATCH = 2 ;
34
34
35
35
/** @var RequestContext */
36
36
protected $ context ;
Original file line number Diff line number Diff line change @@ -22,22 +22,22 @@ class RouteCompiler implements RouteCompilerInterface
22
22
/**
23
23
* @deprecated since Symfony 5.1, to be removed in 6.0
24
24
*/
25
- const REGEX_DELIMITER = '# ' ;
25
+ public const REGEX_DELIMITER = '# ' ;
26
26
27
27
/**
28
28
* This string defines the characters that are automatically considered separators in front of
29
29
* optional placeholders (with default and no static text following). Such a single separator
30
30
* can be left out together with the optional placeholder from matching and generating URLs.
31
31
*/
32
- const SEPARATORS = '/,;.:-_~+*=@| ' ;
32
+ public const SEPARATORS = '/,;.:-_~+*=@| ' ;
33
33
34
34
/**
35
35
* The maximum supported length of a PCRE subpattern name
36
36
* http://pcre.org/current/doc/html/pcre2pattern.html#SEC16.
37
37
*
38
38
* @internal
39
39
*/
40
- const VARIABLE_MAXIMUM_LENGTH = 32 ;
40
+ public const VARIABLE_MAXIMUM_LENGTH = 32 ;
41
41
42
42
/**
43
43
* {@inheritdoc}
Original file line number Diff line number Diff line change @@ -394,5 +394,5 @@ public function provideRemoveCapturingGroup()
394
394
395
395
class Utf8RouteCompiler extends RouteCompiler
396
396
{
397
- const SEPARATORS = '/§ ' ;
397
+ public const SEPARATORS = '/§ ' ;
398
398
}
You can’t perform that action at this time.
0 commit comments