Skip to content

[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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/browser_kit/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BrowserKit
==========

.. toctree::
:maxdepth: 2

introduction
18 changes: 18 additions & 0 deletions components/browser_kit/introduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. index::
single: BrowserKit
single: Components; BrowserKit

The BrowserKit Component
=========================

The BrowserKit component simulates the behavior of a web browser.

The BrowserKit component allows you to make web request, click on links and submit forms.

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).
5 changes: 3 additions & 2 deletions cookbook/event_dispatcher/before_after_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The 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)) {
Expand Down Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this that's be "that is" to improve readability?

Copy link
Member

Choose a reason for hiding this comment

The 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.
Expand Down