- Full name:
\App\Shared\Services\Security\ComposerAuditService - This class is marked as final and can't be subclassed
- This class is a Final class
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
OPTION_RESULT |
private | 'security_audit_result' | |
OPTION_EMAIL_ENABLED |
private | 'security_audit_email_enabled' | |
OPTION_EMAIL_RECIPIENTS |
private | 'security_audit_email_recipients' | |
OPTION_LAST_NOTIFIED_HASH |
private | 'security_audit_last_notified_hash' |
Properties
basePath
timeoutSeconds
auditDevDependencies
Methods
__construct
public __construct(string $basePath, int $timeoutSeconds = 20, bool $auditDevDependencies = false): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$basePath |
string | |
$timeoutSeconds |
int | |
$auditDevDependencies |
bool |
run
Throws:
JsonExceptionContainerExceptionInterfaceNotFoundExceptionInterfaceInvalidArgumentExceptionTypeExceptionReflectionException
latest
Throws:
ContainerExceptionInterfaceNotFoundExceptionInterfaceInvalidArgumentExceptionTypeExceptionReflectionException
saveResult
Parameters:
| Parameter | Type | Description |
|---|---|---|
$result |
\App\Shared\Services\Security\ComposerAuditResult |
Throws:
JsonExceptionContainerExceptionInterfaceNotFoundExceptionInterfaceInvalidArgumentExceptionTypeExceptionReflectionException
normalizePackages
Parameters:
| Parameter | Type | Description |
|---|---|---|
$json |
array |
countAdvisories
Parameters:
| Parameter | Type | Description |
|---|---|---|
$packages |
array |
fingerprint
Parameters:
| Parameter | Type | Description |
|---|---|---|
$packages |
array |
maybeNotifyAdmins
Parameters:
| Parameter | Type | Description |
|---|---|---|
$result |
\App\Shared\Services\Security\ComposerAuditResult |
Throws:
JsonExceptionExceptionContainerExceptionInterfaceNotFoundExceptionInterfaceInvalidArgumentExceptionTypeExceptionExceptionReflectionException
buildEmailBody
Parameters:
| Parameter | Type | Description |
|---|---|---|
$result |
\App\Shared\Services\Security\ComposerAuditResult |