@@ -75,6 +75,7 @@ public function providerEnvironment(): array
75
75
'isGitLabCi ' => false ,
76
76
'isTugboat ' => false ,
77
77
'isPantheon ' => false ,
78
+ 'isPlatformSh ' => false ,
78
79
'isProduction ' => false ,
79
80
'isStaging ' => false ,
80
81
'isDevelopment ' => false ,
@@ -99,6 +100,7 @@ public function providerEnvironment(): array
99
100
'isGitLabCi ' => false ,
100
101
'isTugboat ' => false ,
101
102
'isPantheon ' => false ,
103
+ 'isPlatformSh ' => false ,
102
104
'isProduction ' => true ,
103
105
'isStaging ' => false ,
104
106
'isDevelopment ' => false ,
@@ -124,6 +126,7 @@ public function providerEnvironment(): array
124
126
'isGitLabCi ' => false ,
125
127
'isTugboat ' => false ,
126
128
'isPantheon ' => false ,
129
+ 'isPlatformSh ' => false ,
127
130
'isProduction ' => false ,
128
131
'isStaging ' => false ,
129
132
'isDevelopment ' => false ,
@@ -145,6 +148,7 @@ public function providerEnvironment(): array
145
148
'isGitLabCi ' => false ,
146
149
'isTugboat ' => false ,
147
150
'isPantheon ' => true ,
151
+ 'isPlatformSh ' => false ,
148
152
'isProduction ' => true ,
149
153
'isStaging ' => false ,
150
154
'isDevelopment ' => false ,
@@ -171,6 +175,7 @@ public function providerEnvironment(): array
171
175
'isGitLabCi ' => false ,
172
176
'isTugboat ' => false ,
173
177
'isPantheon ' => true ,
178
+ 'isPlatformSh ' => false ,
174
179
'isProduction ' => false ,
175
180
'isStaging ' => true ,
176
181
'isDevelopment ' => false ,
@@ -197,6 +202,7 @@ public function providerEnvironment(): array
197
202
'isGitLabCi ' => false ,
198
203
'isTugboat ' => false ,
199
204
'isPantheon ' => true ,
205
+ 'isPlatformSh ' => false ,
200
206
'isProduction ' => false ,
201
207
'isStaging ' => false ,
202
208
'isDevelopment ' => true ,
@@ -223,6 +229,7 @@ public function providerEnvironment(): array
223
229
'isGitLabCi ' => false ,
224
230
'isTugboat ' => false ,
225
231
'isPantheon ' => true ,
232
+ 'isPlatformSh ' => false ,
226
233
'isProduction ' => false ,
227
234
'isStaging ' => false ,
228
235
'isDevelopment ' => false ,
@@ -249,6 +256,7 @@ public function providerEnvironment(): array
249
256
'isGitLabCi ' => false ,
250
257
'isTugboat ' => false ,
251
258
'isPantheon ' => true ,
259
+ 'isPlatformSh ' => false ,
252
260
'isProduction ' => false ,
253
261
'isStaging ' => false ,
254
262
'isDevelopment ' => false ,
@@ -271,6 +279,7 @@ public function providerEnvironment(): array
271
279
'isGitLabCi ' => false ,
272
280
'isTugboat ' => false ,
273
281
'isPantheon ' => true ,
282
+ 'isPlatformSh ' => false ,
274
283
'isProduction ' => false ,
275
284
'isStaging ' => false ,
276
285
'isDevelopment ' => false ,
@@ -285,6 +294,146 @@ public function providerEnvironment(): array
285
294
],
286
295
],
287
296
],
297
+ 'platformsh-prod ' => [
298
+ [
299
+ 'PLATFORM_ENVIRONMENT ' => 'main-asdf123 ' ,
300
+ 'PLATFORM_ENVIRONMENT_TYPE ' => 'production ' ,
301
+ ],
302
+ [
303
+ 'getEnvironment ' => 'main-asdf123 ' ,
304
+ 'getEnvironmentType ' => 'production ' ,
305
+ 'isAcquia ' => false ,
306
+ 'isCircleCi ' => false ,
307
+ 'isGitHubWorkflow ' => false ,
308
+ 'isGitLabCi ' => false ,
309
+ 'isTugboat ' => false ,
310
+ 'isPantheon ' => false ,
311
+ 'isPlatformSh ' => true ,
312
+ 'isProduction ' => true ,
313
+ 'isStaging ' => false ,
314
+ 'isDevelopment ' => false ,
315
+ 'isPreview ' => false ,
316
+ 'isCi ' => false ,
317
+ 'isLocal ' => false ,
318
+ 'getIndicatorConfig ' => [
319
+ 'name ' => 'Production ' ,
320
+ 'bg_color ' => '#ffffff ' ,
321
+ 'fg_color ' => '#e7131a ' ,
322
+ ],
323
+ ],
324
+ ],
325
+ 'platformsh-stage ' => [
326
+ [
327
+ 'PLATFORM_ENVIRONMENT ' => 'stage-asdf123 ' ,
328
+ 'PLATFORM_ENVIRONMENT_TYPE ' => 'staging ' ,
329
+ ],
330
+ [
331
+ 'getEnvironment ' => 'stage-asdf123 ' ,
332
+ 'getEnvironmentType ' => 'staging ' ,
333
+ 'isAcquia ' => false ,
334
+ 'isCircleCi ' => false ,
335
+ 'isGitHubWorkflow ' => false ,
336
+ 'isGitLabCi ' => false ,
337
+ 'isTugboat ' => false ,
338
+ 'isPantheon ' => false ,
339
+ 'isPlatformSh ' => true ,
340
+ 'isProduction ' => false ,
341
+ 'isStaging ' => true ,
342
+ 'isDevelopment ' => false ,
343
+ 'isPreview ' => false ,
344
+ 'isCi ' => false ,
345
+ 'isLocal ' => false ,
346
+ 'getIndicatorConfig ' => [
347
+ 'name ' => 'Staging ' ,
348
+ 'bg_color ' => '#ffffff ' ,
349
+ 'fg_color ' => '#b85c00 ' ,
350
+ ],
351
+ ],
352
+ ],
353
+ 'platformsh-dev ' => [
354
+ [
355
+ 'PLATFORM_ENVIRONMENT ' => 'develop-asdf123 ' ,
356
+ 'PLATFORM_ENVIRONMENT_TYPE ' => 'development ' ,
357
+ ],
358
+ [
359
+ 'getEnvironment ' => 'develop-asdf123 ' ,
360
+ 'getEnvironmentType ' => 'development ' ,
361
+ 'isAcquia ' => false ,
362
+ 'isCircleCi ' => false ,
363
+ 'isGitHubWorkflow ' => false ,
364
+ 'isGitLabCi ' => false ,
365
+ 'isTugboat ' => false ,
366
+ 'isPantheon ' => false ,
367
+ 'isPlatformSh ' => true ,
368
+ 'isProduction ' => false ,
369
+ 'isStaging ' => false ,
370
+ 'isDevelopment ' => true ,
371
+ 'isPreview ' => false ,
372
+ 'isCi ' => false ,
373
+ 'isLocal ' => false ,
374
+ 'getIndicatorConfig ' => [
375
+ 'name ' => 'Development ' ,
376
+ 'bg_color ' => '#ffffff ' ,
377
+ 'fg_color ' => '#307b24 ' ,
378
+ ],
379
+ ],
380
+ ],
381
+ 'platformsh-preview ' => [
382
+ [
383
+ 'PLATFORM_ENVIRONMENT ' => 'pr-225-asdf123 ' ,
384
+ 'PLATFORM_BRANCH ' => 'pr-225 ' ,
385
+ 'PLATFORM_ENVIRONMENT_TYPE ' => 'development ' ,
386
+ ],
387
+ [
388
+ 'getEnvironment ' => 'pr-225-asdf123 ' ,
389
+ 'getEnvironmentType ' => 'development ' ,
390
+ 'isAcquia ' => false ,
391
+ 'isCircleCi ' => false ,
392
+ 'isGitHubWorkflow ' => false ,
393
+ 'isGitLabCi ' => false ,
394
+ 'isTugboat ' => false ,
395
+ 'isPantheon ' => false ,
396
+ 'isPlatformSh ' => true ,
397
+ 'isProduction ' => false ,
398
+ 'isStaging ' => false ,
399
+ 'isDevelopment ' => false ,
400
+ 'isPreview ' => true ,
401
+ 'isCi ' => false ,
402
+ 'isLocal ' => false ,
403
+ 'getIndicatorConfig ' => [
404
+ 'name ' => 'Preview ' ,
405
+ 'bg_color ' => '#ffffff ' ,
406
+ 'fg_color ' => '#990055 ' ,
407
+ ],
408
+ ],
409
+ ],
410
+ 'platformsh-local ' => [
411
+ [
412
+ 'PLATFORM_ENVIRONMENT ' => 'lando ' ,
413
+ ],
414
+ [
415
+ 'getEnvironment ' => 'lando ' ,
416
+ 'getEnvironmentType ' => 'local ' ,
417
+ 'isAcquia ' => false ,
418
+ 'isCircleCi ' => false ,
419
+ 'isGitHubWorkflow ' => false ,
420
+ 'isGitLabCi ' => false ,
421
+ 'isTugboat ' => false ,
422
+ 'isPantheon ' => false ,
423
+ 'isPlatformSh ' => true ,
424
+ 'isProduction ' => false ,
425
+ 'isStaging ' => false ,
426
+ 'isDevelopment ' => false ,
427
+ 'isPreview ' => false ,
428
+ 'isCi ' => false ,
429
+ 'isLocal ' => true ,
430
+ 'getIndicatorConfig ' => [
431
+ 'name ' => 'Local ' ,
432
+ 'bg_color ' => '#ffffff ' ,
433
+ 'fg_color ' => '#505050 ' ,
434
+ ],
435
+ ],
436
+ ],
288
437
'tugboat ' => [
289
438
[
290
439
'TUGBOAT_PREVIEW_NAME ' => 'phpunit ' ,
@@ -297,6 +446,7 @@ public function providerEnvironment(): array
297
446
'isGitLabCi ' => false ,
298
447
'isTugboat ' => true ,
299
448
'isPantheon ' => false ,
449
+ 'isPlatformSh ' => false ,
300
450
'isProduction ' => false ,
301
451
'isStaging ' => false ,
302
452
'isDevelopment ' => false ,
@@ -323,6 +473,7 @@ public function providerEnvironment(): array
323
473
'isGitLabCi ' => false ,
324
474
'isTugboat ' => false ,
325
475
'isPantheon ' => false ,
476
+ 'isPlatformSh ' => false ,
326
477
'isProduction ' => false ,
327
478
'isStaging ' => false ,
328
479
'isDevelopment ' => false ,
@@ -345,6 +496,7 @@ public function providerEnvironment(): array
345
496
'isGitLabCi ' => false ,
346
497
'isTugboat ' => false ,
347
498
'isPantheon ' => false ,
499
+ 'isPlatformSh ' => false ,
348
500
'isProduction ' => false ,
349
501
'isStaging ' => false ,
350
502
'isDevelopment ' => false ,
@@ -367,6 +519,7 @@ public function providerEnvironment(): array
367
519
'isGitLabCi ' => true ,
368
520
'isTugboat ' => false ,
369
521
'isPantheon ' => false ,
522
+ 'isPlatformSh ' => false ,
370
523
'isProduction ' => false ,
371
524
'isStaging ' => false ,
372
525
'isDevelopment ' => false ,
@@ -388,6 +541,7 @@ public function providerEnvironment(): array
388
541
'isGitLabCi ' => false ,
389
542
'isTugboat ' => false ,
390
543
'isPantheon ' => false ,
544
+ 'isPlatformSh ' => false ,
391
545
'isProduction ' => false ,
392
546
'isStaging ' => false ,
393
547
'isDevelopment ' => false ,
@@ -413,6 +567,7 @@ public function providerEnvironment(): array
413
567
'isGitLabCi ' => false ,
414
568
'isTugboat ' => false ,
415
569
'isPantheon ' => false ,
570
+ 'isPlatformSh ' => false ,
416
571
'isProduction ' => false ,
417
572
'isStaging ' => false ,
418
573
'isDevelopment ' => false ,
0 commit comments