Action Models are invokable classes that process incoming requests and offer an abstraction of the Model to the View.
In this minimal example, route parameter name is being made accessible to the view template.
public function __invoke($request, $name)
$this->name = $name;
Action Models' dependencies are automatically injected through the constructor by the Container.