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 26
26
*/
27
27
class XmlFileLoader extends FileLoader
28
28
{
29
- const NAMESPACE_URI = 'http://symfony.com/schema/routing ' ;
30
- const SCHEME_PATH = '/schema/routing/routing-1.0.xsd ' ;
29
+ public const NAMESPACE_URI = 'http://symfony.com/schema/routing ' ;
30
+ public const SCHEME_PATH = '/schema/routing/routing-1.0.xsd ' ;
31
31
32
32
/**
33
33
* 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 19
19
*/
20
20
class RouteCompiler implements RouteCompilerInterface
21
21
{
22
- const REGEX_DELIMITER = '# ' ;
22
+ public const REGEX_DELIMITER = '# ' ;
23
23
24
24
/**
25
25
* This string defines the characters that are automatically considered separators in front of
26
26
* optional placeholders (with default and no static text following). Such a single separator
27
27
* can be left out together with the optional placeholder from matching and generating URLs.
28
28
*/
29
- const SEPARATORS = '/,;.:-_~+*=@| ' ;
29
+ public const SEPARATORS = '/,;.:-_~+*=@| ' ;
30
30
31
31
/**
32
32
* The maximum supported length of a PCRE subpattern name
33
33
* http://pcre.org/current/doc/html/pcre2pattern.html#SEC16.
34
34
*
35
35
* @internal
36
36
*/
37
- const VARIABLE_MAXIMUM_LENGTH = 32 ;
37
+ public const VARIABLE_MAXIMUM_LENGTH = 32 ;
38
38
39
39
/**
40
40
* {@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