From a715baf9264b454ef590b96556c7686f79b0a1cf Mon Sep 17 00:00:00 2001 From: Andrew M Date: Thu, 9 Oct 2014 08:13:18 +0300 Subject: [PATCH 1/3] Improve readability --- cookbook/event_dispatcher/before_after_filters.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbook/event_dispatcher/before_after_filters.rst b/cookbook/event_dispatcher/before_after_filters.rst index 569f0c7cce5..7fe93410713 100644 --- a/cookbook/event_dispatcher/before_after_filters.rst +++ b/cookbook/event_dispatcher/before_after_filters.rst @@ -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. * 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 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. From f4732a9a929aa909f9ba3050cf474ac6f87871fe Mon Sep 17 00:00:00 2001 From: yamiko Date: Thu, 9 Oct 2014 11:17:59 -0700 Subject: [PATCH 2/3] added introduction --- components/browser_kit/index.rst | 7 +++++++ components/browser_kit/introduction.rst | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 components/browser_kit/index.rst create mode 100644 components/browser_kit/introduction.rst diff --git a/components/browser_kit/index.rst b/components/browser_kit/index.rst new file mode 100644 index 00000000000..624a0aeb12f --- /dev/null +++ b/components/browser_kit/index.rst @@ -0,0 +1,7 @@ +Browser Kit +==== + +.. toctree:: + :maxdepth: 2 + + introduction diff --git a/components/browser_kit/introduction.rst b/components/browser_kit/introduction.rst new file mode 100644 index 00000000000..495c979108a --- /dev/null +++ b/components/browser_kit/introduction.rst @@ -0,0 +1,18 @@ +.. index:: + single: Yaml + single: Components; Yaml + +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. + +Installation +------------ + +You can install the component in 2 different ways: + +* :doc:`Install it via Composer ` (``symfony/browser-kit`` on `Packagist`_); +* Use the official Git repository (https://github.com/symfony/BrowserKit). From 9cda9822c04c848a2dfd9232066f0efffd1bda63 Mon Sep 17 00:00:00 2001 From: yamiko Date: Fri, 10 Oct 2014 09:54:20 -0700 Subject: [PATCH 3/3] fixed a few mistakes --- components/browser_kit/index.rst | 4 ++-- components/browser_kit/introduction.rst | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/browser_kit/index.rst b/components/browser_kit/index.rst index 624a0aeb12f..692b45d63f3 100644 --- a/components/browser_kit/index.rst +++ b/components/browser_kit/index.rst @@ -1,5 +1,5 @@ -Browser Kit -==== +BrowserKit +========== .. toctree:: :maxdepth: 2 diff --git a/components/browser_kit/introduction.rst b/components/browser_kit/introduction.rst index 495c979108a..32dc1db9750 100644 --- a/components/browser_kit/introduction.rst +++ b/components/browser_kit/introduction.rst @@ -1,13 +1,13 @@ .. index:: - single: Yaml - single: Components; Yaml + single: BrowserKit + single: Components; BrowserKit -The Browser Kit Component +The BrowserKit Component ========================= - The Browser Kit component simulates the behavior of a web browser. + The BrowserKit component simulates the behavior of a web browser. -The Browser Kit component allows you to make web request, click on links and submit forms. +The BrowserKit component allows you to make web request, click on links and submit forms. Installation ------------ @@ -15,4 +15,4 @@ Installation You can install the component in 2 different ways: * :doc:`Install it via Composer ` (``symfony/browser-kit`` on `Packagist`_); -* Use the official Git repository (https://github.com/symfony/BrowserKit). +* Use the official Git repository (https://github.com/symfony/BrowserKit). \ No newline at end of file