Skip to content

Commit

Permalink
Updated config key to 'lmc_cors'
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Sep 4, 2020
1 parent 9354ac6 commit e77db36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ phpunit.xml
tmp/
vendor/
build/
/.idea/
/.idea/
.phpunit*
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

return [
'zfr_cors' => [
'lmc_cors' => [
/**
* Set the list of allowed origins domain with protocol.
*/
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
processIsolation="false"
backupGlobals="false"
>
<testsuite name="ZfrCors tests">
<testsuite name="LmcCors tests">
<directory>./tests</directory>
</testsuite>
<filter>
Expand Down
2 changes: 1 addition & 1 deletion src/LmcCors/Factory/CorsOptionsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __invoke(ContainerInterface $container)
{
/* @var $config array */
$config = $container->has('config') ? $container->get('config') : [];
$config = isset($config['zfr_cors']) ? $config['zfr_cors'] : [];
$config = isset($config['lmc_cors']) ? $config['lmc_cors'] : [];

return new CorsOptions($config);
}
Expand Down

0 comments on commit e77db36

Please sign in to comment.