Registers a class to a framework method.

@param string $name Method name
@param string $class Class name
@param array $params Class initialization parameters
@param callback $callback Function to call after object instantiation
@throws \Exception If trying to map over a framework method