MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

Checks

MMO\core\compliance · 1 symbole · générée le 30 Nov 2026

class

Checks

Checks.php:17

The automatic checks of the information security management system (aCheck) the libraries and the project register in their bootstrap, and their run.

class MMO\core\compliance\Checks
Espace de noms
MMO\core\compliance
A check that throws is an `erreur`, one whose [`aCheck::unavailable`](https://mmoframework.fr/fr/documentation/mmo.core/php/compliance/aCheck.md#acheck-unavailable) says why it cannot run here is `non disponible`: neither stops the others. Nothing is cached: each run reads the application as it is.
\MMO\core\compliance\Checks::Register(\MMO\oauth\compliance\MfaCheck::class); $results = \MMO\core\compliance\Checks::Run('application', ['root' => \MMO\filename('{root}')]); $results['oauth.mfa']['result']; // 'partiel'

Propriétés1

classes

static
protected static array $classes = []
Type
array

Méthodes6

Classes($scope)

staticChecks.php:41
static function Classes(?string $scope = null): array
$scope = nullnull | stringapplication or hub (aCheck::SCOPE); null for all
retournearrayclass-string<aCheck>> the checks registered, by name

Matches($name, $patterns)

staticChecks.php:97
static function Matches(string $name, array $patterns): bool
$namestring
$patternsarraynames, or prefixes ending with . or *
retournebool

Register($classes)

staticChecks.php:25
static function Register(string ...$classes): void
...$classesstring
retournevoid

Run($scope, $context, $only, $skip)

staticChecks.php:53

Run the checks of a scope.

static function Run( string $scope, array $context = [], ?array $only = null, array $skip = [] ): array
$scopestringClasses
$context = []array
$only = nullnull | arraythese names only (a name ending with . or * takes a library's: oauth.)
$skip = []arraythese names left out (the same patterns)
retournearrayarray{name: string, label: string, measures: list<string>, result: string, detail: string, evidence: list<string>, data: array<string, mixed>, seconds: float}>

RunOne($check)

staticChecks.php:66
static function RunOne(MMO\core\compliance\aCheck $check): array
$checkaCheck
retournearraystring, label: string, measures: list<string>, result: string, detail: string, evidence: list<string>, data: array<string, mixed>, seconds: float}