Skip to content

Commit

Permalink
Merge pull request #292 from alleyinteractive/response-macroable
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jul 16, 2022
2 parents 22d0d3c + 77593d9 commit dd91623
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mantle/http-client/class-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use InvalidArgumentException;
use LogicException;
use Mantle\Support\Collection;
use Mantle\Support\Traits\Macroable;
use SimpleXMLElement;
use WP_Error;
use WP_HTTP_Cookie;
Expand All @@ -22,6 +23,8 @@
* Response object from WordPress HTTP API.
*/
class Response implements ArrayAccess {
use Macroable;

/**
* Raw response from `wp_remote_request()`.
*
Expand Down
3 changes: 3 additions & 0 deletions src/mantle/http/class-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
use Mantle\Contracts\Support\Arrayable;
use Mantle\Contracts\Support\Htmlable;
use Mantle\Contracts\Support\Jsonable;
use Mantle\Support\Traits\Macroable;
use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;

/**
* HTTP Response
*/
class Response extends HttpFoundationResponse {
use Macroable;

/**
* The original content of the response.
*
Expand Down

0 comments on commit dd91623

Please sign in to comment.