Skip to content

Commit 4cf18d1

Browse files
committed
Fixed: Changes name of curl hook to curl_rewrite.
1 parent 08eeed3 commit 4cf18d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

documentation/_posts/2013-10-10-libraryhooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Library Hooks
66
Library hooks allow PHP-VCR to **intercept HTTP requests** by overwriting the libraries method to issue requests.
77
Currently there are four library hooks available:
88

9-
* `curl` intercepting requests issued by ext-curl using source-code overwriting
9+
* `curl_rewrite` intercepting requests issued by ext-curl using source-code overwriting
1010
* `curl_runkit` intercepting ext-curl requests using ex-runkit
1111
* `soap` intercepting requests issued by [SoapClient](http://php.net/SoapClient) using source-code overwriting
1212
* `stream_wrapper` intercepting requests issued by any PHP function based on stream wrappers like [fopen](http://php.net/fopen), [file_get_contents](http://php.net/file_get_contents)
@@ -18,7 +18,7 @@ Library hooks can be enabled or disabled. If enabled, all HTTP interactions issu
1818

1919
### Curl
2020

21-
The `curl` hook intercepts HTTP interactions made by the popular `ext-curl` PHP extension. Specifically the following functions will be overwritten.
21+
The `curl_rewrite` hook intercepts HTTP interactions made by the popular `ext-curl` PHP extension. Specifically the following functions will be overwritten.
2222

2323
curl_init
2424
curl_exec
@@ -33,7 +33,7 @@ The `curl` hook intercepts HTTP interactions made by the popular `ext-curl` PHP
3333

3434
### Curl Runkit
3535

36-
The `curl_runkit` hook does pretty much the same as `curl` hook but using ext-runkit instead of source-code overwriting.
36+
The `curl_runkit` hook does pretty much the same as `curl_rewrite` hook but using ext-runkit instead of source-code overwriting.
3737

3838
### Soap
3939

documentation/_posts/2013-10-20-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PHP-VCR can be configured by calling it's `configure` method which returns a `Co
1313

1414
require_once __DIR__ . '/../vendor/autoload.php';
1515

16-
\VCR\VCR::configure()->enableLibraryHooks(array('curl', 'soap'));
16+
\VCR\VCR::configure()->enableLibraryHooks(array('curl_rewrite', 'soap'));
1717
\VCR\VCR::turnOn();
1818

1919
Library hooks can only intercept HTTP requests if PHP-VCR is turned on right after initializing your autoloader, before

0 commit comments

Comments
 (0)