Skip to content

Namespace problem in part 7 #54

@thinsoldier

Description

@thinsoldier

Argument 1 passed to Example\Controllers\Homepage::__construct() must be an instance of Example\Controllers\Response, instance of Http\HttpResponse given

I don't how to fix this.

Fixed by changing Homepage controller constructor to

public function __construct(\Http\HttpResponse $response)

Should I not have needed to do this?

Nevermind. I missed the USE statement in the example code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions