diff --git a/.gitignore b/.gitignore index a4904be..bad8e44 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ phpunit.xml tmp/ vendor/ build/ -/.idea/ \ No newline at end of file +/.idea/ +.phpunit* \ No newline at end of file diff --git a/config/zfr_cors.global.php.dist b/config/lmc_cors.global.php.dist similarity index 98% rename from config/zfr_cors.global.php.dist rename to config/lmc_cors.global.php.dist index f12c840..1ae6b2f 100644 --- a/config/zfr_cors.global.php.dist +++ b/config/lmc_cors.global.php.dist @@ -6,7 +6,7 @@ */ return [ - 'zfr_cors' => [ + 'lmc_cors' => [ /** * Set the list of allowed origins domain with protocol. */ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 71e77e7..26bd577 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,7 +10,7 @@ processIsolation="false" backupGlobals="false" > - + ./tests diff --git a/src/LmcCors/Factory/CorsOptionsFactory.php b/src/LmcCors/Factory/CorsOptionsFactory.php index 8296c68..e2b715b 100644 --- a/src/LmcCors/Factory/CorsOptionsFactory.php +++ b/src/LmcCors/Factory/CorsOptionsFactory.php @@ -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); }