|
4 | 4 |
|
5 | 5 | class Config |
6 | 6 | { |
7 | | - const TOPIC = 'enqueue.topic'; |
8 | | - const COMMAND = 'enqueue.command'; |
9 | | - const PROCESSOR = 'enqueue.processor'; |
10 | | - const EXPIRE = 'enqueue.expire'; |
11 | | - const PRIORITY = 'enqueue.priority'; |
12 | | - const DELAY = 'enqueue.delay'; |
13 | | - const CONTENT_TYPE = 'enqueue.content_type'; |
| 7 | + public const TOPIC = 'enqueue.topic'; |
| 8 | + public const COMMAND = 'enqueue.command'; |
| 9 | + public const PROCESSOR = 'enqueue.processor'; |
| 10 | + public const EXPIRE = 'enqueue.expire'; |
| 11 | + public const PRIORITY = 'enqueue.priority'; |
| 12 | + public const DELAY = 'enqueue.delay'; |
| 13 | + public const CONTENT_TYPE = 'enqueue.content_type'; |
14 | 14 |
|
15 | 15 | /** |
16 | 16 | * @var string |
@@ -66,7 +66,7 @@ public function __construct( |
66 | 66 | string $defaultQueue, |
67 | 67 | string $routerProcessor, |
68 | 68 | array $transportConfig, |
69 | | - array $driverConfig |
| 69 | + array $driverConfig, |
70 | 70 | ) { |
71 | 71 | $this->prefix = trim($prefix); |
72 | 72 | $this->app = trim($app); |
@@ -153,15 +153,15 @@ public function getDriverOptions(): array |
153 | 153 | } |
154 | 154 |
|
155 | 155 | public static function create( |
156 | | - string $prefix = null, |
157 | | - string $separator = null, |
158 | | - string $app = null, |
159 | | - string $routerTopic = null, |
160 | | - string $routerQueue = null, |
161 | | - string $defaultQueue = null, |
162 | | - string $routerProcessor = null, |
| 156 | + ?string $prefix = null, |
| 157 | + ?string $separator = null, |
| 158 | + ?string $app = null, |
| 159 | + ?string $routerTopic = null, |
| 160 | + ?string $routerQueue = null, |
| 161 | + ?string $defaultQueue = null, |
| 162 | + ?string $routerProcessor = null, |
163 | 163 | array $transportConfig = [], |
164 | | - array $driverConfig = [] |
| 164 | + array $driverConfig = [], |
165 | 165 | ): self { |
166 | 166 | return new static( |
167 | 167 | $prefix ?: '', |
|
0 commit comments