Skip to content

Commit

Permalink
Merge branch 'php-8' of https://github.com/abraxa1982/phlexa-mezzio i…
Browse files Browse the repository at this point in the history
…nto php-8
  • Loading branch information
Meike Ziesecke committed Sep 18, 2023
2 parents d50ad1e + 62103ea commit 674cb9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Application/AlexaApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function __invoke(

/** @var AlexaApplication $alexaApplication */
$alexaApplication = new $requestedName(
$alexaRequest, $alexaResponse, $intentManager
$alexaRequest,
$alexaResponse,
$intentManager
);

return $alexaApplication;
Expand Down
5 changes: 5 additions & 0 deletions src/Intent/AbstractIntentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
$config = $container->get('config');

$errorFlag = false;
$errorPath = '';

if (isset($config['phlexa'])) {
if (isset($config['phlexa']['log_errors'])) {
$errorFlag = $config['phlexa']['log_errors'];
}
if (isset($config['phlexa']['error_dir'])) {
$errorPath = $config['phlexa']['error_dir'];
}
}
$intent->setErrorLogFlag($errorFlag);
$intent->setErrorPath($errorPath);

return $intent;
}
Expand Down

0 comments on commit 674cb9e

Please sign in to comment.