Skip to content

Commit

Permalink
Updated controllers and classes so the used ContainerInterface is the…
Browse files Browse the repository at this point in the history
… proper one
  • Loading branch information
carlos-mg89 committed Dec 9, 2020
1 parent 5fa4814 commit 401a229
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 112 deletions.
4 changes: 2 additions & 2 deletions Controller/CaptchaHandlerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function getResourceContents()
throw new BadRequestHttpException('Invalid file name.');
}

$resourcePath = realpath(Path::getPublicDirPathInLibrary($this->container) . $filename);
$resourcePath = realpath(Path::getPublicDirPathInLibrary() . $filename);

if (!is_file($resourcePath)) {
throw new BadRequestHttpException(sprintf('File "%s" could not be found.', $filename));
Expand Down Expand Up @@ -393,7 +393,7 @@ public function getScriptInclude()
header('X-Robots-Tag: noindex, nofollow, noarchive, nosnippet');

// 1. load BotDetect script
$resourcePath = realpath(Path::getPublicDirPathInLibrary($this->container) . 'bdc-traditional-api-script-include.js');
$resourcePath = realpath(Path::getPublicDirPathInLibrary() . 'bdc-traditional-api-script-include.js');

if (!is_file($resourcePath)) {
throw new BadRequestHttpException(sprintf('File "%s" could not be found.', $resourcePath));
Expand Down
Loading

0 comments on commit 401a229

Please sign in to comment.