---
lang: en
title: 'API docs: context.context.setupconfigurationresolverifneeded'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.context.setupconfigurationresolverifneeded.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Context](./context.context.md) &gt; [setupConfigurationResolverIfNeeded](./context.context.setupconfigurationresolverifneeded.md)

## Context.setupConfigurationResolverIfNeeded() method

Set up the configuration resolver if needed

**Signature:**

```typescript
protected setupConfigurationResolverIfNeeded(): ConfigurationResolver;
```
**Returns:**

[ConfigurationResolver](./context.configurationresolver.md)


