File tree Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1313 */
1414class Status
1515{
16- const STATUS_WAITING = 1 ;
17- const STATUS_RUNNING = 2 ;
18- const STATUS_FAILED = 3 ;
19- const STATUS_COMPLETE = 4 ;
16+ public const STATUS_WAITING = 1 ;
17+ public const STATUS_RUNNING = 2 ;
18+ public const STATUS_FAILED = 3 ;
19+ public const STATUS_COMPLETE = 4 ;
2020
2121 /**
2222 * @var string The prefix of the job status id.
Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ class Redis
2626 /**
2727 * A default host to connect to
2828 */
29- const DEFAULT_HOST = 'localhost ' ;
29+ protected const DEFAULT_HOST = 'localhost ' ;
3030
3131 /**
3232 * The default Redis port
3333 */
34- const DEFAULT_PORT = 6379 ;
34+ protected const DEFAULT_PORT = 6379 ;
3535
3636 /**
3737 * The default Redis Database number
3838 */
39- const DEFAULT_DATABASE = 0 ;
39+ protected const DEFAULT_DATABASE = 0 ;
4040
4141 /**
4242 * Connection driver
Original file line number Diff line number Diff line change 1414 */
1515class Resque
1616{
17- const VERSION = '1.2 ' ;
17+ public const VERSION = '1.2 ' ;
1818
19- const DEFAULT_INTERVAL = 5 ;
19+ public const DEFAULT_INTERVAL = 5 ;
2020
2121 /**
2222 * @var Redis Instance of Resque\Redis that talks to redis.
Original file line number Diff line number Diff line change 1616*/
1717class Scheduler
1818{
19- const VERSION = "0.1 " ;
19+ public const VERSION = "0.1 " ;
2020
2121 /**
2222 * Enqueue a job in a given number of seconds from now.
Original file line number Diff line number Diff line change 1717 */
1818class SchedulerWorker
1919{
20- const LOG_NONE = 0 ;
21- const LOG_NORMAL = 1 ;
22- const LOG_VERBOSE = 2 ;
20+ public const LOG_NONE = 0 ;
21+ public const LOG_NORMAL = 1 ;
22+ public const LOG_VERBOSE = 2 ;
2323
2424 /**
2525 * @var int Current log level of this worker.
Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ public function validDsnStringProvider()
4242 // Input , Expected output
4343 array ('' , array (
4444 'localhost ' ,
45- Redis:: DEFAULT_PORT ,
45+ 6379 ,
4646 false ,
4747 false , false ,
4848 array (),
4949 )),
5050 array ('localhost ' , array (
5151 'localhost ' ,
52- Redis:: DEFAULT_PORT ,
52+ 6379 ,
5353 false ,
5454 false , false ,
5555 array (),
@@ -70,14 +70,14 @@ public function validDsnStringProvider()
7070 )),
7171 array ('redis://foobar ' , array (
7272 'foobar ' ,
73- Redis:: DEFAULT_PORT ,
73+ 6379 ,
7474 false ,
7575 false , false ,
7676 array (),
7777 )),
7878 array ('redis://foobar/ ' , array (
7979 'foobar ' ,
80- Redis:: DEFAULT_PORT ,
80+ 6379 ,
8181 false ,
8282 false , false ,
8383 array (),
You can’t perform that action at this time.
0 commit comments