Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Redirecting paragraph of Testing page #7098

Merged
merged 1 commit into from
Oct 30, 2016

Conversation

FrancescoBorzi
Copy link
Contributor

No description provided.

@FrancescoBorzi FrancescoBorzi force-pushed the 2.7-testing branch 2 times, most recently from 1b07199 to d066ca8 Compare October 28, 2016 13:35
@@ -505,7 +505,7 @@ afterwards with the ``followRedirect()`` method::
$crawler = $client->followRedirect();

If you want the client to automatically follow all redirects, you can
force him with the ``followRedirects()`` method::
force him by calling the ``followRedirects()`` method before performing the request::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love your addition! If you have the time, please make one more minor change in this change: Change "him" to "them". We want to be as gender-neutral as possible in the docs :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, done!

@wouterj
Copy link
Member

wouterj commented Oct 28, 2016

👍
Status: reviewed

@@ -505,7 +505,7 @@ afterwards with the ``followRedirect()`` method::
$crawler = $client->followRedirect();

If you want the client to automatically follow all redirects, you can
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShinDarth thanks for this improvement. I like it ... but I still think that the original phrase is not very good. What if we reword it as follows:

You can make the client to automatically follow all redirects by
calling the ``followRedirects()`` method before making the first request::

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok but are you sure that it should be made before the first request? I would say it simply should be made before the requests that needs to automatically follow the redirect

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 You are right. It's common to call this before the first request ... but it's not mandatory at all! Thanks.

@xabbuh
Copy link
Member

xabbuh commented Oct 30, 2016

Thank you @ShinDarth.

@xabbuh xabbuh merged commit 91bffcb into symfony:2.7 Oct 30, 2016
xabbuh added a commit that referenced this pull request Oct 30, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

Improved Redirecting paragraph of Testing page

Commits
-------

91bffcb Improved Redirecting paragraph of Testing page
@FrancescoBorzi FrancescoBorzi deleted the 2.7-testing branch December 28, 2016 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants