spekulatius / PHPScraper

A universal web-util for PHP.
https://phpscraper.de
GNU General Public License v3.0
515 stars 73 forks source link

[Proposal] Exposing Goutte/Client via client() property/callable method #154

Closed amurrell closed 1 year ago

amurrell commented 1 year ago

Previously, there was an issue about exposing the Goutte/Client via core that was fixed but never released.

My code was depending on it via a dev branch.

In the latest version, this functionality was removed. I recommend that it be added back in.

In UsesGoutte.php,

/**
 * Retrieve the client
 *
 * @param \Goutte\Client $client
 */
public function client(): GoutteClient
{
    return $this->client;
}
spekulatius commented 1 year ago

Merged, thank you @amurrell!