diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index e7ba5ad..7e7722e 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -63,18 +63,12 @@ public function getConfigTreeBuilder() ->info('Default route name to use for error page (e.g. payment refused)') ->example(['default_error_route' => 'my_error_route']) ->end() - ->enumNode('environment') + ->scalarNode('environment') ->isRequired() - ->values([ - PaylineSDK::ENV_HOMO, - PaylineSDK::ENV_PROD, - PaylineSDK::ENV_INT, - PaylineSDK::ENV_DEV, - ]) ->beforeNormalization() ->always(function ($v) { return strtoupper($v); }) ->end() - ->info("The payment environment\ne.g. 'homo' for 'Homologation', 'prod' for 'Production'") + ->info("The payment environment\ne.g. 'homo' for 'Homologation', 'prod' for 'Production'.\nValid values are HOMO, PROD, INT and DEV.") ->defaultValue('HOMO') ->end() ->enumNode('log_level')