Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to call protected methods from outside #17

Closed
JanMikes opened this issue Nov 26, 2015 · 4 comments
Closed

Unable to call protected methods from outside #17

JanMikes opened this issue Nov 26, 2015 · 4 comments

Comments

@JanMikes
Copy link

Fatal Error Call to protected method Bitbang\Http\Clients\CurlClient::process() from context 'Xyz\Class'

    public function test()
    {
        $request = new Http\Request('GET', $this->constructUrl();

        $response = $this->client->process($request); // Exception here
    }
@milo
Copy link
Contributor

milo commented Nov 26, 2015

Sorry, that's an error in doc. You should call $client->request($request). I didn't merge process() yet.

@milo
Copy link
Contributor

milo commented Nov 26, 2015

I'll fix it in few minutes...

@milo
Copy link
Contributor

milo commented Nov 26, 2015

@lexinek Fixed. The interface method is process() now.

@milo milo closed this as completed Nov 26, 2015
@JanMikes
Copy link
Author

Awesome, that was really fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants