File tree Expand file tree Collapse file tree 9 files changed +26
-26
lines changed
Expand file tree Collapse file tree 9 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ final class ConsoleEvents
2525 *
2626 * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
2727 */
28- const COMMAND = 'console.command ' ;
28+ public const COMMAND = 'console.command ' ;
2929
3030 /**
3131 * The TERMINATE event allows you to attach listeners after a command is
3232 * executed by the console.
3333 *
3434 * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
3535 */
36- const TERMINATE = 'console.terminate ' ;
36+ public const TERMINATE = 'console.terminate ' ;
3737
3838 /**
3939 * The ERROR event occurs when an uncaught exception or error appears.
@@ -43,5 +43,5 @@ final class ConsoleEvents
4343 *
4444 * @Event("Symfony\Component\Console\Event\ConsoleErrorEvent")
4545 */
46- const ERROR = 'console.error ' ;
46+ public const ERROR = 'console.error ' ;
4747}
Original file line number Diff line number Diff line change 2222 */
2323class ApplicationDescription
2424{
25- const GLOBAL_NAMESPACE = '_global ' ;
25+ public const GLOBAL_NAMESPACE = '_global ' ;
2626
2727 private $ application ;
2828 private $ namespace ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ final class ConsoleCommandEvent extends ConsoleEvent
2121 /**
2222 * The return code for skipped commands, this will also be passed into the terminate event.
2323 */
24- const RETURN_CODE_DISABLED = 113 ;
24+ public const RETURN_CODE_DISABLED = 113 ;
2525
2626 /**
2727 * Indicates if the command should be run or skipped.
Original file line number Diff line number Diff line change 2121 */
2222class InputArgument
2323{
24- const REQUIRED = 1 ;
25- const OPTIONAL = 2 ;
26- const IS_ARRAY = 4 ;
24+ public const REQUIRED = 1 ;
25+ public const OPTIONAL = 2 ;
26+ public const IS_ARRAY = 4 ;
2727
2828 private $ name ;
2929 private $ mode ;
Original file line number Diff line number Diff line change 2121 */
2222class InputOption
2323{
24- const VALUE_NONE = 1 ;
25- const VALUE_REQUIRED = 2 ;
26- const VALUE_OPTIONAL = 4 ;
27- const VALUE_IS_ARRAY = 8 ;
24+ public const VALUE_NONE = 1 ;
25+ public const VALUE_REQUIRED = 2 ;
26+ public const VALUE_OPTIONAL = 4 ;
27+ public const VALUE_IS_ARRAY = 8 ;
2828
2929 private $ name ;
3030 private $ shortcut ;
Original file line number Diff line number Diff line change 2424 */
2525class StringInput extends ArgvInput
2626{
27- const REGEX_STRING = '([^\s]+?)(?:\s|(?<! \\\\)"|(?<! \\\\) \'|$) ' ;
28- const REGEX_QUOTED_STRING = '(?:"([^" \\\\]*(?: \\\\.[^" \\\\]*)*)"| \'([^ \'\\\\]*(?: \\\\.[^ \'\\\\]*)*) \') ' ;
27+ public const REGEX_STRING = '([^\s]+?)(?:\s|(?<! \\\\)"|(?<! \\\\) \'|$) ' ;
28+ public const REGEX_QUOTED_STRING = '(?:"([^" \\\\]*(?: \\\\.[^" \\\\]*)*)"| \'([^ \'\\\\]*(?: \\\\.[^ \'\\\\]*)*) \') ' ;
2929
3030 /**
3131 * @param string $input A string representing the parameters from the CLI
Original file line number Diff line number Diff line change 2626 */
2727class ConsoleLogger extends AbstractLogger
2828{
29- const INFO = 'info ' ;
30- const ERROR = 'error ' ;
29+ public const INFO = 'info ' ;
30+ public const ERROR = 'error ' ;
3131
3232 private $ output ;
3333 private $ verbosityLevelMap = [
Original file line number Diff line number Diff line change 2020 */
2121interface OutputInterface
2222{
23- const VERBOSITY_QUIET = 16 ;
24- const VERBOSITY_NORMAL = 32 ;
25- const VERBOSITY_VERBOSE = 64 ;
26- const VERBOSITY_VERY_VERBOSE = 128 ;
27- const VERBOSITY_DEBUG = 256 ;
28-
29- const OUTPUT_NORMAL = 1 ;
30- const OUTPUT_RAW = 2 ;
31- const OUTPUT_PLAIN = 4 ;
23+ public const VERBOSITY_QUIET = 16 ;
24+ public const VERBOSITY_NORMAL = 32 ;
25+ public const VERBOSITY_VERBOSE = 64 ;
26+ public const VERBOSITY_VERY_VERBOSE = 128 ;
27+ public const VERBOSITY_DEBUG = 256 ;
28+
29+ public const OUTPUT_NORMAL = 1 ;
30+ public const OUTPUT_RAW = 2 ;
31+ public const OUTPUT_PLAIN = 4 ;
3232
3333 /**
3434 * Writes a message to the output.
Original file line number Diff line number Diff line change 3535 */
3636class SymfonyStyle extends OutputStyle
3737{
38- const MAX_LINE_LENGTH = 120 ;
38+ public const MAX_LINE_LENGTH = 120 ;
3939
4040 private $ input ;
4141 private $ questionHelper ;
You can’t perform that action at this time.
0 commit comments