File tree Expand file tree Collapse file tree 6 files changed +22
-17
lines changed Expand file tree Collapse file tree 6 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 1818interface IRouter
1919{
2020 /** only matching route */
21- const ONE_WAY = 0b0001 ;
21+ public const ONE_WAY = 0b0001 ;
2222
2323 /**
2424 * Maps HTTP request to a Request object.
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ class Request
2626 use Nette \SmartObject;
2727
2828 /** method */
29- const FORWARD = 'FORWARD ' ;
29+ public const FORWARD = 'FORWARD ' ;
3030
3131 /** flag */
32- const SECURED = 'secured ' ;
32+ public const SECURED = 'secured ' ;
3333
3434 /** flag */
35- const RESTORED = 'restored ' ;
35+ public const RESTORED = 'restored ' ;
3636
3737 /** @var string|NULL */
3838 private $ method ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class CliRouter implements Application\IRouter
2020{
2121 use Nette \SmartObject;
2222
23- const PRESENTER_KEY = 'action ' ;
23+ public const PRESENTER_KEY = 'action ' ;
2424
2525 /** @var array */
2626 private $ defaults ;
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ class Route implements Application\IRouter
2222{
2323 use Nette \SmartObject;
2424
25- const PRESENTER_KEY = 'presenter ' ;
26- const MODULE_KEY = 'module ' ;
25+ public const
26+ PRESENTER_KEY = 'presenter ' ,
27+ MODULE_KEY = 'module ' ;
2728
2829 /** url type */
2930 private const
@@ -32,12 +33,13 @@ class Route implements Application\IRouter
3233 RELATIVE = 3 ;
3334
3435 /** key used in {@link Route::$styles} or metadata {@link Route::__construct} */
35- const VALUE = 'value ' ;
36- const PATTERN = 'pattern ' ;
37- const FILTER_IN = 'filterIn ' ;
38- const FILTER_OUT = 'filterOut ' ;
39- const FILTER_TABLE = 'filterTable ' ;
40- const FILTER_STRICT = 'filterStrict ' ;
36+ public const
37+ VALUE = 'value ' ,
38+ PATTERN = 'pattern ' ,
39+ FILTER_IN = 'filterIn ' ,
40+ FILTER_OUT = 'filterOut ' ,
41+ FILTER_TABLE = 'filterTable ' ,
42+ FILTER_STRICT = 'filterStrict ' ;
4143
4244 /** fixity types - how to handle default value? {@link Route::$metadata} */
4345 private const
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ class SimpleRouter implements Application\IRouter
2020{
2121 use Nette \SmartObject;
2222
23- const PRESENTER_KEY = 'presenter ' ;
24- const MODULE_KEY = 'module ' ;
23+ public const
24+ PRESENTER_KEY = 'presenter ' ,
25+ MODULE_KEY = 'module ' ;
2526
2627 /** @var string */
2728 private $ module = '' ;
Original file line number Diff line number Diff line change 3131abstract class Presenter extends Control implements Application \IPresenter
3232{
3333 /** bad link handling {@link Presenter::$invalidLinkMode} */
34- const INVALID_LINK_SILENT = 0b0000 ,
34+ public const
35+ INVALID_LINK_SILENT = 0b0000 ,
3536 INVALID_LINK_WARNING = 0b0001 ,
3637 INVALID_LINK_EXCEPTION = 0b0010 ,
3738 INVALID_LINK_TEXTUAL = 0b0100 ;
3839
3940 /** @internal special parameter key */
40- const SIGNAL_KEY = 'do ' ,
41+ public const
42+ SIGNAL_KEY = 'do ' ,
4143 ACTION_KEY = 'action ' ,
4244 FLASH_KEY = '_fid ' ,
4345 DEFAULT_ACTION = 'default ' ;
You can’t perform that action at this time.
0 commit comments