Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Re-add getClient/setClient? #444

Open
@marbuser

Description

@marbuser

I really disagree with the move away from Guzzle, but I can at least understand some of the reasons.

However, I can't understand why setClient/getClient was removed. It made writing tests and mocking with this package infinitely easier, and the new api is incredibly unintuitive, no offense.

Ever since the move away from Guzzle, integrating this package has become way more work with frameworks like Laravel. Sure you can achieve basic stuff easily, but the second it comes to actually trying to mock/fake anything, it becomes an incredibly tedious and frustrating API to work with where I'm starting to feel just writing my own scraper from scratch would be a better option. From personal experience, I never got this with older versions of Goutte that supported Guzzle. It was a dream to work with back then.

Using old versions isn't an option, because Laravel literally prevents you from even installing it due to a Guzzle version constraint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions