Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Fix #51 missing setEndPoint and setTimeout methods on securityChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
opalenet-yann authored and fabpot committed Aug 11, 2015
1 parent 8d32035 commit 2d3f866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SensioLabs/Security/Command/SecurityCheckerCommand.php
Expand Up @@ -72,11 +72,11 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($endPoint = $input->getOption('end-point')) {
$this->checker->setEndPoint($endPoint);
$this->checker->getCrawler()->setEndPoint($endPoint);
}

if ($timeout = $input->getOption('timeout')) {
$this->checker->setTimeout($timeout);
$this->checker->getCrawler()->setTimeout($timeout);
}

try {
Expand Down
8 changes: 8 additions & 0 deletions SensioLabs/Security/SecurityChecker.php
Expand Up @@ -56,4 +56,12 @@ public function getLastVulnerabilityCount()
{
return $this->vulnerabilityCount;
}

/**
* @return CrawlerInterface
*/
public function getCrawler()
{
return $this->crawler;
}
}

0 comments on commit 2d3f866

Please sign in to comment.