From c2a8d22d91e232386f0d9583a43262eb65fe14ea Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 9 Sep 2016 12:12:35 +0100 Subject: [PATCH] Add the artisan command to check for security vulns --- app/Console/Commands/SecurityCheck.php | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 app/Console/Commands/SecurityCheck.php diff --git a/app/Console/Commands/SecurityCheck.php b/app/Console/Commands/SecurityCheck.php new file mode 100644 index 00000000..a1260e75 --- /dev/null +++ b/app/Console/Commands/SecurityCheck.php @@ -0,0 +1,53 @@ +securityChecker = $securityChecker; + } + + /** + * Execute the console command. + * + * @return mixed + */ + public function handle() + { + return $this->securityChecker->check(base_path() . '/composer.lock'); + } +}