# Controller

A smart extension of Closures with magic dependency injection based on the defined variable names.

****

- Full class name: `Kirby\Toolkit\Controller`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/Controller.php#L21>

****

### Controller

- [new Controller()](https://getkirby.com/docs/reference/objects/toolkit/controller/__construct.md)
- [$controller->arguments()](https://getkirby.com/docs/reference/objects/toolkit/controller/arguments.md)
- [$controller->call()](https://getkirby.com/docs/reference/objects/toolkit/controller/call.md)
- [Controller::load()](https://getkirby.com/docs/reference/objects/toolkit/controller/load.md)