Documentation

Dependency
in package

Security dependency check class.

Table of Contents

CACHE_FILE_NAME  = ROOT_DIRECTORY . '/cache/security/dependency.json'
$checkUrl  : string
check()  : array<string|int, mixed>
Send lock file to verify.
securityChecker()  : array<string|int, mixed>
Security checker.
getCache()  : array<string|int, mixed>
Get data from the cache.
getLockContent()  : array<string|int, mixed>
Get parsed lock file elements.
getLockFile()  : array<string|int, mixed>
Get lock file content.
hasCache()  : bool
Check if a cache is available.
saveCache()  : void
Save the data to the cache.

Constants

CACHE_FILE_NAME

public string CACHE_FILE_NAME = ROOT_DIRECTORY . '/cache/security/dependency.json'

Cache file name.

Properties

$checkUrl

private string $checkUrl = 'https://security.yetiforce.com/vulnerabilities'

Symfony check url.

Methods

check()

Send lock file to verify.

public check() : array<string|int, mixed>
Return values
array<string|int, mixed>

securityChecker()

Security checker.

public securityChecker([bool $cache = true ]) : array<string|int, mixed>
Parameters
$cache : bool = true
Tags
throws
AppException
Return values
array<string|int, mixed>

getCache()

Get data from the cache.

private getCache() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLockContent()

Get parsed lock file elements.

private getLockContent(string $lock) : array<string|int, mixed>
Parameters
$lock : string
Return values
array<string|int, mixed>

getLockFile()

Get lock file content.

private getLockFile(string $lock) : array<string|int, mixed>
Parameters
$lock : string
Return values
array<string|int, mixed>

hasCache()

Check if a cache is available.

private hasCache() : bool
Return values
bool

saveCache()

Save the data to the cache.

private saveCache(array<string|int, mixed> $result) : void
Parameters
$result : array<string|int, mixed>
Return values
void

        

Search results