| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Build-time URL rewrites (.github/workflows/build-*-zip.yml) target this file, |
| 5 |
* so any new PHP code that consumes these constants inherits the override. |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Extendify; |
| 9 |
|
| 10 |
defined('ABSPATH') || die('No direct access.'); |
| 11 |
|
| 12 |
class Constants |
| 13 |
{ |
| 14 |
// Plugin requires PHP 7.0; constant visibility modifiers are PHP 7.1+. |
| 15 |
// phpcs:disable PSR12.Properties.ConstantVisibility.NotFound |
| 16 |
const AI_HOST = 'https://ai.extendify.com'; |
| 17 |
const PATTERNS_HOST = 'https://patterns.extendify.com'; |
| 18 |
const KB_HOST = 'https://kb.extendify.com'; |
| 19 |
const INSIGHTS_HOST = 'https://insights.extendify.com'; |
| 20 |
const IMAGES_HOST = 'https://images-resource.extendify.com'; |
| 21 |
const DASHBOARD_HOST = 'https://dashboard.extendify.com'; |
| 22 |
// phpcs:enable PSR12.Properties.ConstantVisibility.NotFound |
| 23 |
|
| 24 |
/** |
| 25 |
* All Extendify service base URLs. |
| 26 |
* |
| 27 |
* @return string[] |
| 28 |
*/ |
| 29 |
public static function serviceUrls() |
| 30 |
{ |
| 31 |
return [ |
| 32 |
self::AI_HOST, |
| 33 |
self::PATTERNS_HOST, |
| 34 |
self::KB_HOST, |
| 35 |
self::INSIGHTS_HOST, |
| 36 |
self::IMAGES_HOST, |
| 37 |
self::DASHBOARD_HOST, |
| 38 |
]; |
| 39 |
} |
| 40 |
} |
| 41 |
|