getConfiguration($configs, $container); $config = $this->processConfiguration($configuration, $configs); $container->setParameter( 'retail_crm_service.request_schema.callback', $config['request_schema']['callback'] ); $container->setParameter( 'retail_crm_service.request_schema.client', $config['request_schema']['client'] ); $container ->register(CallbackValueResolver::class) ->setArgument('$requestSchema', '%retail_crm_service.request_schema.callback%') ->addTag('controller.argument_value_resolver', ['priority' => 50]) ->setAutowired(true); $container ->register(ClientValueResolver::class) ->setArgument('$requestSchema', '%retail_crm_service.request_schema.client%') ->addTag('controller.argument_value_resolver', ['priority' => 50]) ->setAutowired(true); $container ->register(ErrorJsonResponseFactory::class) ->setAutowired(true); $container ->register(CallbackClientAuthenticator::class) ->setAutowired(true); $container ->register(FrontApiClientAuthenticator::class) ->setAutowired(true); } }