Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Support\Passport;
class ScopeRegistry
{
protected static array $scopes = [
'profile' => 'View your profile',
];
public static function add(string $scope, string $description): void
{
if (!array_key_exists($scope, static::$scopes)) {
static::$scopes[$scope] = $description;
}
}
public static function addMany(array $scopes): void
{
foreach ($scopes as $key => $desc) {
static::add($key, $desc);
}
}
public static function getAll(): array
{
return static::$scopes;
}
}