| | |
| | | public static function withIntegration(string $integration, ?string $type = null):array |
| | | { |
| | | self::ensureInstanced(); |
| | | |
| | | if (!Site::has($integration)) { |
| | | Site::getInstance(); |
| | | if (!Site::hasIntegration($integration)) { |
| | | error_log('[Registrar]::withIntegration Integration not available to fetch: '.$integration); |
| | | return []; |
| | | } |
| | |
| | | if (!is_null($type) && $inst->type !== $type) { |
| | | return false; |
| | | } |
| | | return array_key_exists($integration, $this->integrationConfigs); |
| | | return array_key_exists($integration, $inst->integrationConfigs); |
| | | })); |
| | | } |
| | | |