I'm try to do Dependency Injection in controller in this way:
public function Controller_Monkeys(Interface_Model_Monkey $model)
{
$this->model = $model;
}
or
public function __construct(Interface_Model_Monkey $model)
{
$this->model = $model;
}
but I get this.
ErrorException [ 4096 ]: Argument 1 passed to Controller_Monkeys::Controller_Monkeys() must be an instance of Interface_Model_Monkey, instance of Fuel\Core\Request given