diff --git a/cache.rst b/cache.rst
index 1a84b8a27c9..b7640fdea9d 100644
--- a/cache.rst
+++ b/cache.rst
@@ -209,9 +209,9 @@ You can also create more customized pools. All you need is an adapter:
-
-
-
+
+
+
@@ -281,11 +281,11 @@ For advanced configurations it could sometimes be useful to use a pool as an ada
-
-
-
-
-
+
+
+
+
+
@@ -359,7 +359,7 @@ and use that when configuring the pool.
-
+
@@ -437,8 +437,8 @@ case the value needs to be recalculated.
-
-
+
+
diff --git a/components/cache/adapters/proxy_adapter.rst b/components/cache/adapters/proxy_adapter.rst
index f553798b0f8..a0959781bca 100644
--- a/components/cache/adapters/proxy_adapter.rst
+++ b/components/cache/adapters/proxy_adapter.rst
@@ -15,8 +15,8 @@ and optionally a namespace and default cache lifetime as its second and third pa
use Psr\Cache\CacheItemPoolInterface;
use Symfony\Component\Cache\Adapter\ProxyAdapter;
- \\ create your own cache pool instance that implements the PSR-6
- \\ interface `CacheItemPoolInterface`
+ // create your own cache pool instance that implements
+ // the PSR-6 CacheItemPoolInterface
$psr6CachePool = ...
$cache = new ProxyAdapter(
diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst
index c50347c6b63..3bcc706bc93 100644
--- a/components/dom_crawler.rst
+++ b/components/dom_crawler.rst
@@ -338,31 +338,31 @@ This behavior is best illustrated with examples::
$crawler->filterXPath('//span[contains(@id, "article-")]')->evaluate('substring-after(@id, "-")');
/* array:3 [
- 0 => "100",
- 1 => "101",
- 2 => "102",
+ 0 => "100"
+ 1 => "101"
+ 2 => "102"
]
- */
+ */
$crawler->evaluate('substring-after(//span[contains(@id, "article-")]/@id, "-")');
/* array:1 [
- 0 => "100",
+ 0 => "100"
]
- */
+ */
$crawler->filterXPath('//span[@class="article"]')->evaluate('count(@id)');
/* array:3 [
- 0 => 1.0,
- 1 => 1.0,
- 2 => 1.0,
+ 0 => 1.0
+ 1 => 1.0
+ 2 => 1.0
]
- */
+ */
$crawler->evaluate('count(//span[@class="article"])');
/* array:1 [
- 0 => 3.0,
+ 0 => 3.0
]
- */
+ */
$crawler->evaluate('//span[1]');
// A Symfony\Component\DomCrawler\Crawler instance
diff --git a/components/translation/usage.rst b/components/translation/usage.rst
index fdc0f77eaef..bf01876cdb3 100644
--- a/components/translation/usage.rst
+++ b/components/translation/usage.rst
@@ -453,19 +453,19 @@ loaded/dumped when using this component inside a Symfony application:
-
-
-
- new
- true
- user login
-
-
- original-content
- translated-content
-
-
-
+
+
+
+ new
+ true
+ user login
+
+
+ original-content
+ translated-content
+
+
+
When using the standalone Translation component, call the ``setMetadata()``
diff --git a/console/command_in_controller.rst b/console/command_in_controller.rst
index bef73d3b0aa..1dbf4813f48 100644
--- a/console/command_in_controller.rst
+++ b/console/command_in_controller.rst
@@ -42,11 +42,11 @@ Run this command from inside your controller via::
$application->setAutoExit(false);
$input = new ArrayInput([
- 'command' => 'swiftmailer:spool:send',
- // (optional) define the value of command arguments
- 'fooArgument' => 'barValue',
- // (optional) pass options to the command
- '--message-limit' => $messages,
+ 'command' => 'swiftmailer:spool:send',
+ // (optional) define the value of command arguments
+ 'fooArgument' => 'barValue',
+ // (optional) pass options to the command
+ '--message-limit' => $messages,
]);
// You can use NullOutput() if you don't need the output
diff --git a/event_dispatcher.rst b/event_dispatcher.rst
index a35e8f604f2..5504b08994e 100644
--- a/event_dispatcher.rst
+++ b/event_dispatcher.rst
@@ -152,11 +152,11 @@ listen to the same ``kernel.exception`` event::
{
// return the subscribed events, their methods and priorities
return [
- KernelEvents::EXCEPTION => [
- ['processException', 10],
- ['logException', 0],
- ['notifyException', -10],
- ]
+ KernelEvents::EXCEPTION => [
+ ['processException', 10],
+ ['logException', 0],
+ ['notifyException', -10],
+ ],
];
}
diff --git a/form/dynamic_form_modification.rst b/form/dynamic_form_modification.rst
index a0b6fee1c43..1c0fbc55eda 100644
--- a/form/dynamic_form_modification.rst
+++ b/form/dynamic_form_modification.rst
@@ -10,7 +10,7 @@ how to customize your form based on three common use-cases:
1) :ref:`form-events-underlying-data`
Example: you have a "Product" form and need to modify/add/remove a field
- based on the data on the underlying Product being edited.
+ based on the data on the underlying Product being edited.
2) :ref:`form-events-user-data`
diff --git a/form/without_class.rst b/form/without_class.rst
index ae5fa3e9ddf..a1c441f494a 100644
--- a/form/without_class.rst
+++ b/form/without_class.rst
@@ -87,15 +87,15 @@ but here's a short example::
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
- ->add('firstName', TextType::class, [
- 'constraints' => new Length(['min' => 3]),
- ])
- ->add('lastName', TextType::class, [
- 'constraints' => [
- new NotBlank(),
- new Length(['min' => 3]),
- ],
- ])
+ ->add('firstName', TextType::class, [
+ 'constraints' => new Length(['min' => 3]),
+ ])
+ ->add('lastName', TextType::class, [
+ 'constraints' => [
+ new NotBlank(),
+ new Length(['min' => 3]),
+ ],
+ ])
;
}
diff --git a/frontend/assetic/uglifyjs.rst b/frontend/assetic/uglifyjs.rst
index 910b0894f48..8c9a2d56ab2 100644
--- a/frontend/assetic/uglifyjs.rst
+++ b/frontend/assetic/uglifyjs.rst
@@ -296,7 +296,7 @@ helper:
.. code-block:: html+twig
{% stylesheets 'bundles/App/css/*' filter='uglifycss' filter='cssrewrite' %}
-
+
{% endstylesheets %}
Just like with the ``uglifyjs2`` filter, if you prefix the filter name with
diff --git a/introduction/http_fundamentals.rst b/introduction/http_fundamentals.rst
index 13c14800dc9..39b78cec041 100644
--- a/introduction/http_fundamentals.rst
+++ b/introduction/http_fundamentals.rst
@@ -121,7 +121,7 @@ like this:
Content-Type: text/html
-
+
The HTTP response contains the requested resource (the HTML content in this
diff --git a/security/custom_authentication_provider.rst b/security/custom_authentication_provider.rst
index 046e2dcc371..0cfab7be233 100644
--- a/security/custom_authentication_provider.rst
+++ b/security/custom_authentication_provider.rst
@@ -555,10 +555,10 @@ the ``addConfiguration()`` method::
public function addConfiguration(NodeDefinition $node)
{
- $node
- ->children()
- ->scalarNode('lifetime')->defaultValue(300)
- ->end();
+ $node
+ ->children()
+ ->scalarNode('lifetime')->defaultValue(300)
+ ->end();
}
}
diff --git a/security/multiple_guard_authenticators.rst b/security/multiple_guard_authenticators.rst
index 25cfab79ad3..48620edf2a2 100644
--- a/security/multiple_guard_authenticators.rst
+++ b/security/multiple_guard_authenticators.rst
@@ -24,7 +24,7 @@ This is how your security configuration can look in action:
# app/config/security.yml
security:
- # ...
+ # ...
firewalls:
default:
anonymous: ~
diff --git a/service_container/3.3-di-changes.rst b/service_container/3.3-di-changes.rst
index 6dabb60364d..3d77a900aa1 100644
--- a/service_container/3.3-di-changes.rst
+++ b/service_container/3.3-di-changes.rst
@@ -637,10 +637,10 @@ Now you're ready to default all services to be private:
# ...
services:
- _defaults:
- autowire: true
- autoconfigure: true
- + public: false
+ _defaults:
+ autowire: true
+ autoconfigure: true
+ + public: false
Thanks to this, any services created in this file cannot be fetched directly from
the container. But, since the old service id's are aliases in a separate file (``legacy_aliases.yml``),
diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst
index 90a6316a821..34ac9d413ff 100644
--- a/service_container/autowiring.rst
+++ b/service_container/autowiring.rst
@@ -288,7 +288,7 @@ Now that you have an interface, you should use this as your type-hint::
{
public function __construct(TransformerInterface $transformer)
{
- // ...
+ // ...
}
// ...
diff --git a/service_container/debug.rst b/service_container/debug.rst
index 1b384bb316e..b8c3ec5fd61 100644
--- a/service_container/debug.rst
+++ b/service_container/debug.rst
@@ -26,7 +26,7 @@ To see a list of all of the available types that can be used for autowiring, run
.. versionadded:: 3.4
- The ``debug:autowiring`` command was introduced in Symfony 3.3.
+ The ``debug:autowiring`` command was introduced in Symfony 3.3.
Detailed Info about a Single Service
------------------------------------
@@ -43,4 +43,4 @@ its id:
.. versionadded:: 3.3
- The ``--show-arguments`` option was introduced in Symfony 3.3.
+ The ``--show-arguments`` option was introduced in Symfony 3.3.
diff --git a/service_container/injection_types.rst b/service_container/injection_types.rst
index 0d6b092dd05..370876346dc 100644
--- a/service_container/injection_types.rst
+++ b/service_container/injection_types.rst
@@ -41,7 +41,7 @@ service container configuration:
.. code-block:: yaml
- services:
+ services:
# ...
AppBundle\Mail\NewsletterManager:
@@ -120,7 +120,7 @@ that accepts the dependency::
.. code-block:: yaml
- services:
+ services:
# ...
app.newsletter_manager:
@@ -192,7 +192,7 @@ Another possibility is just setting public fields of the class directly::
.. code-block:: yaml
- services:
+ services:
# ...
app.newsletter_manager:
diff --git a/templating/PHP.rst b/templating/PHP.rst
index e37a164a65c..b4dfd6b1973 100644
--- a/templating/PHP.rst
+++ b/templating/PHP.rst
@@ -482,9 +482,9 @@ form is rendered.
'AppBundle:Form',
],
],
- ],
+ ],
- // ...
+ // ...
]);
By default, the PHP engine uses a *div* layout when rendering forms. Some people,
diff --git a/templating/global_variables.rst b/templating/global_variables.rst
index b01d8170feb..aa6ec13b036 100644
--- a/templating/global_variables.rst
+++ b/templating/global_variables.rst
@@ -39,10 +39,10 @@ This is possible inside your ``app/config/config.yml`` file:
// app/config/config.php
$container->loadFromExtension('twig', [
- // ...
- 'globals' => [
- 'ga_tracking' => 'UA-xxxxx-x',
- ],
+ // ...
+ 'globals' => [
+ 'ga_tracking' => 'UA-xxxxx-x',
+ ],
]);
Now, the variable ``ga_tracking`` is available in all Twig templates:
@@ -95,9 +95,9 @@ system, which lets you isolate or reuse the value:
// app/config/config.php
$container->loadFromExtension('twig', [
- 'globals' => [
- 'ga_tracking' => '%ga_tracking%',
- ],
+ 'globals' => [
+ 'ga_tracking' => '%ga_tracking%',
+ ],
]);
The same variable is available exactly as before.
@@ -151,8 +151,8 @@ This should feel familiar, as it's the same syntax you use in service configurat
// app/config/config.php
$container->loadFromExtension('twig', [
- // ...
- 'globals' => [
- 'user_management' => '@AppBundle\Service\UserManagement',
- ],
+ // ...
+ 'globals' => [
+ 'user_management' => '@AppBundle\Service\UserManagement',
+ ],
]);
diff --git a/testing/http_authentication.rst b/testing/http_authentication.rst
index 41d96ddd18e..b18da561993 100644
--- a/testing/http_authentication.rst
+++ b/testing/http_authentication.rst
@@ -40,8 +40,8 @@ firewall, but only in the configuration file used by tests:
-
-
+
+
.. code-block:: php