-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[WIP]Add browserkit component documentation #4310
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Browser Kit | ||
==== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
introduction |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. index:: | ||
single: Yaml | ||
single: Components; Yaml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be changed to BrowserKit. ;) |
||
|
||
The Browser Kit Component | ||
========================= | ||
|
||
The Browser Kit component simulates the behavior of a web browser. | ||
|
||
The Browser Kit component allows you to make web request, click on links and submit forms. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. web requests or make a web request? |
||
|
||
Installation | ||
------------ | ||
|
||
You can install the component in 2 different ways: | ||
|
||
* :doc:`Install it via Composer </components/using_components>` (``symfony/browser-kit`` on `Packagist`_); | ||
* Use the official Git repository (https://github.com/symfony/BrowserKit). |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,8 @@ event listeners, you can learn more about them at :doc:`/cookbook/service_contai | |
$controller = $event->getController(); | ||
|
||
/* | ||
* $controller passed can be either a class or a Closure. This is not usual in Symfony but it may happen. | ||
* $controller passed can be either a class or a Closure. | ||
* This is not usual in Symfony but it may happen. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it looks like your PR is not based on the upstream branch |
||
* If it is a class, it comes in array format | ||
*/ | ||
if (!is_array($controller)) { | ||
|
@@ -189,7 +190,7 @@ want. | |
After Filters with the ``kernel.response`` Event | ||
------------------------------------------------ | ||
|
||
In addition to having a "hook" that's executed before your controller, you | ||
In addition to having a "hook" that's executed *before* your controller, you | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this that's be "that is" to improve readability? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is likely not coming from the pull request, but is just displayed because @yamiko-ninja needs to do a rebase. |
||
can also add a hook that's executed *after* your controller. For this example, | ||
imagine that you want to add a sha1 hash (with a salt using that token) to | ||
all responses that have passed this token authentication. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The underline must have the same length as the headline.