# Source: https://mikro-orm.io/api/core/function/EnsureRequestContext.md

# EnsureRequestContext<!-- -->

### Callable

* ****EnsureRequestContext**\<T>(context): MethodDecorator

***

* #### Parameters

  * ##### optionalcontext: ContextProvider\<T>

  #### Returns MethodDecorator