File tree 6 files changed +17
-17
lines changed
6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
class Status
15
15
{
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 ;
20
20
21
21
/**
22
22
* @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
26
26
/**
27
27
* A default host to connect to
28
28
*/
29
- const DEFAULT_HOST = 'localhost ' ;
29
+ protected const DEFAULT_HOST = 'localhost ' ;
30
30
31
31
/**
32
32
* The default Redis port
33
33
*/
34
- const DEFAULT_PORT = 6379 ;
34
+ protected const DEFAULT_PORT = 6379 ;
35
35
36
36
/**
37
37
* The default Redis Database number
38
38
*/
39
- const DEFAULT_DATABASE = 0 ;
39
+ protected const DEFAULT_DATABASE = 0 ;
40
40
41
41
/**
42
42
* Connection driver
Original file line number Diff line number Diff line change 14
14
*/
15
15
class Resque
16
16
{
17
- const VERSION = '1.2 ' ;
17
+ public const VERSION = '1.2 ' ;
18
18
19
- const DEFAULT_INTERVAL = 5 ;
19
+ public const DEFAULT_INTERVAL = 5 ;
20
20
21
21
/**
22
22
* @var Redis Instance of Resque\Redis that talks to redis.
Original file line number Diff line number Diff line change 16
16
*/
17
17
class Scheduler
18
18
{
19
- const VERSION = "0.1 " ;
19
+ public const VERSION = "0.1 " ;
20
20
21
21
/**
22
22
* Enqueue a job in a given number of seconds from now.
Original file line number Diff line number Diff line change 17
17
*/
18
18
class SchedulerWorker
19
19
{
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 ;
23
23
24
24
/**
25
25
* @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()
42
42
// Input , Expected output
43
43
array ('' , array (
44
44
'localhost ' ,
45
- Redis:: DEFAULT_PORT ,
45
+ 6379 ,
46
46
false ,
47
47
false , false ,
48
48
array (),
49
49
)),
50
50
array ('localhost ' , array (
51
51
'localhost ' ,
52
- Redis:: DEFAULT_PORT ,
52
+ 6379 ,
53
53
false ,
54
54
false , false ,
55
55
array (),
@@ -70,14 +70,14 @@ public function validDsnStringProvider()
70
70
)),
71
71
array ('redis://foobar ' , array (
72
72
'foobar ' ,
73
- Redis:: DEFAULT_PORT ,
73
+ 6379 ,
74
74
false ,
75
75
false , false ,
76
76
array (),
77
77
)),
78
78
array ('redis://foobar/ ' , array (
79
79
'foobar ' ,
80
- Redis:: DEFAULT_PORT ,
80
+ 6379 ,
81
81
false ,
82
82
false , false ,
83
83
array (),
You can’t perform that action at this time.
0 commit comments