@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (22 loc) • 997 B
Markdown
---
lang: en
title: 'API docs: rest.createcontrollerfactoryforbinding'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.createcontrollerfactoryforbinding.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [createControllerFactoryForBinding](./rest.createcontrollerfactoryforbinding.md)
## createControllerFactoryForBinding() function
Create a controller factory function for a given binding key
<b>Signature:</b>
```typescript
export declare function createControllerFactoryForBinding<T>(key: string): ControllerFactory<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | string | Binding key |
<b>Returns:</b>
[ControllerFactory](./rest.controllerfactory.md)<!-- --><T>