Fix configuration setting access

This commit is contained in:
Thibaud Fabre
2016-09-27 11:38:29 +02:00
parent 5666286e33
commit 7cf5d28a99
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class OAuth2 implements ControllerProviderInterface, ServiceProviderInterface
/** @var PropertyAccess $config */
$config = $app['conf'];
if ($config->get('api_disable', false) == true) {
if ($config->get([ 'main', 'api_disable' ], false) == true) {
return $app['controllers_factory'];
}

View File

@@ -50,7 +50,7 @@ class V1 implements ControllerProviderInterface, ServiceProviderInterface
/** @var PropertyAccess $config */
$config = $app['conf'];
if ($config->get('api_disable', false) == true) {
if ($config->get([ 'main', 'api_disable' ], false) == true) {
return $app['controllers_factory'];
}

View File

@@ -74,7 +74,7 @@ class V2 implements ControllerProviderInterface, ServiceProviderInterface
/** @var PropertyAccess $config */
$config = $app['conf'];
if ($config->get('api_disable', false) == true) {
if ($config->get([ 'main', 'api_disable' ], false) == true) {
return $app['controllers_factory'];
}