Typemaps · defines a mapping from a class_type to a service · instead of requesting a particular service, you can request an object of a particular type: $c->resolve(type => 'Model');