From 01033647ccbe2f5c96b3ae5abd91d0d4ce4c9526 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 10 Feb 2016 19:55:29 +0100 Subject: [PATCH 1/4] [#6032] fix link to ROT13 description --- components/dependency_injection/autowiring.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dependency_injection/autowiring.rst b/components/dependency_injection/autowiring.rst index 46196cc846d..b2707a33411 100644 --- a/components/dependency_injection/autowiring.rst +++ b/components/dependency_injection/autowiring.rst @@ -13,8 +13,8 @@ typehint which is useful in the field of `Rapid Application Development`_, when designing prototypes in early stages of large projects. It makes it easy to register a service graph and eases refactoring. -Imagine you're building an API to publish statuses on a Twitter feed, which -has to be obfuscated with ``ROT13`` (a special case of the Caesar cipher). +Imagine you're building an API to publish statuses on a Twitter feed, obfuscated +with `ROT13`_ (a special case of the Caesar cipher). Start by creating a ROT13 transformer class:: From 6ef2099aecbabfaf7f16ea3a44f0dee09e7205a0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 11 Feb 2016 09:11:00 +0100 Subject: [PATCH 2/4] reflect behavior changes in cache generation Starting with Symfony 2.8, the class cache is generated when the cache is warmed up. This means that you cannot prevent the cache from being generated, but you must simply not load it to ease debugging. Also, this means that you have to ignore the cache files in your IDE now if it cannot deal with them properly. --- cookbook/debugging.rst | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/cookbook/debugging.rst b/cookbook/debugging.rst index 98fae25bad8..6e863be7d11 100644 --- a/cookbook/debugging.rst +++ b/cookbook/debugging.rst @@ -21,10 +21,9 @@ Disabling the Bootstrap File and Class Caching And to make the production environment as fast as possible, Symfony creates big PHP files in your cache containing the aggregation of PHP classes your -project needs for every request. However, this behavior can confuse your IDE -or your debugger. This recipe shows you how you can tweak this caching -mechanism to make it friendlier when you need to debug code that involves -Symfony classes. +project needs for every request. However, this behavior can confuse your +debugger. This recipe shows you how you can tweak this caching mechanism +to make it friendlier when you need to debug code that involves Symfony classes. The ``app_dev.php`` front controller reads as follows by default:: @@ -37,9 +36,9 @@ The ``app_dev.php`` front controller reads as follows by default:: $kernel->loadClassCache(); $request = Request::createFromGlobals(); -To make your debugger happier, disable all PHP class caches by removing the -call to ``loadClassCache()`` and by replacing the require statements like -below:: +To make your debugger happier, disable the loading of all PHP class caches +by removing the call to ``loadClassCache()`` and by replacing the require +statements like below:: // ... @@ -57,7 +56,5 @@ below:: session. Some IDEs do not like the fact that some classes are stored in different -locations. To avoid problems, you can either tell your IDE to ignore the PHP -cache files, or you can change the extension used by Symfony for these files:: - - $kernel->loadClassCache('classes', '.php.cache'); +locations. To avoid problems, you can tell your IDE to ignore the PHP cache +file. From 61ef5bb2218fd6424a3abfe782d06004c581fe9b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 15 Feb 2016 21:05:12 +0100 Subject: [PATCH 3/4] remove dot in front of colon --- cookbook/form/data_transformers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/form/data_transformers.rst b/cookbook/form/data_transformers.rst index 255e64c6e8c..680758ddd6d 100644 --- a/cookbook/form/data_transformers.rst +++ b/cookbook/form/data_transformers.rst @@ -254,7 +254,7 @@ Next, you need to instantiate the ``IssueToNumberTransformer`` class from inside of the entity manager (because ``IssueToNumberTransformer`` needs this). No problem! Just add a ``__construct()`` function to ``TaskType`` and force this -to be passed in by registering ``TaskType`` as a service.:: +to be passed in by registering ``TaskType`` as a service:: // src/AppBundle/Form/TaskType.php namespace AppBundle\Form\Type; From 3d3bac0a919bdafc79917f5840206032ba8ace67 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sun, 21 Feb 2016 16:53:58 -0500 Subject: [PATCH 4/4] [#6263] Javier's comments --- cookbook/debugging.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cookbook/debugging.rst b/cookbook/debugging.rst index 6e863be7d11..26c91da8c09 100644 --- a/cookbook/debugging.rst +++ b/cookbook/debugging.rst @@ -21,9 +21,12 @@ Disabling the Bootstrap File and Class Caching And to make the production environment as fast as possible, Symfony creates big PHP files in your cache containing the aggregation of PHP classes your -project needs for every request. However, this behavior can confuse your -debugger. This recipe shows you how you can tweak this caching mechanism -to make it friendlier when you need to debug code that involves Symfony classes. +project needs for every request. However, this behavior can confuse your debugger, +because the same class can be located in two different places: the original class +file and the big file which aggregates lots of classes. + +This recipe shows you how you can tweak this caching mechanism to make it friendlier +when you need to debug code that involves Symfony classes. The ``app_dev.php`` front controller reads as follows by default::