26 lines
565 B
PHP
26 lines
565 B
PHP
<?php
|
|
|
|
namespace App\Services\Inventory;
|
|
|
|
class CoverageCapabilitiesResolver
|
|
{
|
|
public function supportsDependencies(string $type): bool
|
|
{
|
|
$contracts = config('graph_contracts.types', []);
|
|
if (! is_array($contracts)) {
|
|
return false;
|
|
}
|
|
|
|
$meta = $contracts[$type] ?? null;
|
|
if (! is_array($meta)) {
|
|
return false;
|
|
}
|
|
|
|
if (array_key_exists('assignments_list_path', $meta)) {
|
|
return true;
|
|
}
|
|
|
|
return ($meta['supports_scope_tags'] ?? false) === true;
|
|
}
|
|
}
|