File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,9 @@ context of the crawler::
269
269
Adding the Content
270
270
~~~~~~~~~~~~~~~~~~
271
271
272
- The crawler supports multiple ways of adding the content::
272
+ The crawler supports multiple ways of adding the content, but they are mutually
273
+ exclusive, so you can only use one of them to add content (e.g. if you pass the
274
+ content to the ``Crawler `` constructor, you can't call ``addContent() `` later)::
273
275
274
276
$crawler = new Crawler('<html><body/></html>');
275
277
Original file line number Diff line number Diff line change @@ -346,11 +346,11 @@ analysis purposes. Use the ``anonymize()`` method from the
346
346
use Symfony\Component\HttpFoundation\IpUtils;
347
347
348
348
$ipv4 = '123.234.235.236';
349
- $anonymousIpv4 = IPUtils ::anonymize($ipv4);
349
+ $anonymousIpv4 = IpUtils ::anonymize($ipv4);
350
350
// $anonymousIpv4 = '123.234.235.0'
351
351
352
352
$ipv6 = '2a01:198:603:10:396e:4789:8e99:890f';
353
- $anonymousIpv6 = IPUtils ::anonymize($ipv6);
353
+ $anonymousIpv6 = IpUtils ::anonymize($ipv6);
354
354
// $anonymousIpv6 = '2a01:198:603:10::'
355
355
356
356
Accessing other Data
You can’t perform that action at this time.
0 commit comments