Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Add new view of libaries vulnerabilities #11278

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improvements
  • Loading branch information
adudekyeti committed Aug 22, 2019
commit 05fbf67e0a6dce1a91787d144c06a204f3e32c7c
2 changes: 1 addition & 1 deletion app/Security/Dependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function securityChecker(): array
if ($this->hasCache()) {
$result = $this->getCache();
} elseif (\App\RequestUtil::isNetConnection()) {
$result = (new \App\Utils\Dependency())->check();
$result = (new \App\Utils\Dependencies())->check();
$this->saveCache($result);
}
return $result;
Expand Down
6 changes: 3 additions & 3 deletions app/Utils/Dependency.php → app/Utils/Dependencies.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Dependency class.
* Dependencies class.
*
* @package App
*
Expand All @@ -12,9 +12,9 @@
namespace App\Utils;

/**
* Dependency .
* Dependencies.
*/
class Dependency
class Dependencies
{
private $checkUrl = 'https://security.symfony.com/check_lock';
adudekyeti marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
1 change: 0 additions & 1 deletion modules/Settings/YetiForce/views/Vulnerabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function process(\App\Request $request)
{
$viewer = $this->getViewer($request);
$qualifiedModuleName = $request->getModule(false);
$viewer->assign('MODULE', $qualifiedModuleName);
$viewer->assign('VULNERABILITIES', (new \App\Security\Dependency())->securityChecker());
$viewer->view('Vulnerabilities.tpl', $qualifiedModuleName);
}
Expand Down