diff --git a/event_dispatcher.rst b/event_dispatcher.rst
index d20c1bb0073..a75e072f6d7 100644
--- a/event_dispatcher.rst
+++ b/event_dispatcher.rst
@@ -91,7 +91,7 @@ using a special "tag":
http://symfony.com/schema/dic/services/services-1.0.xsd">
-
+
diff --git a/http_cache/esi.rst b/http_cache/esi.rst
index 9ac203756f5..888c0d445aa 100644
--- a/http_cache/esi.rst
+++ b/http_cache/esi.rst
@@ -139,7 +139,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
render(
new Symfony\Component\HttpKernel\Controller\ControllerReference(
- 'AppBundle:News:latest',
+ 'App\Controller\NewsController::latest',
array('maxPerPage' => 5)
),
array('strategy' => 'esi')
diff --git a/service_container/factories.rst b/service_container/factories.rst
index 0b0eea5b4b8..cfca74e26df 100644
--- a/service_container/factories.rst
+++ b/service_container/factories.rst
@@ -152,7 +152,7 @@ Configuration of the service container then looks like this:
.. code-block:: yaml
# config/services.yaml
- AppBundle\Email\NewsletterManager:
+ App\Email\NewsletterManager:
# new syntax
factory: 'App\Email\NewsletterManagerFactory:createNewsletterManager'
# old syntax
diff --git a/templating/twig_extension.rst b/templating/twig_extension.rst
index 73abcea485a..9a95bed6d8c 100644
--- a/templating/twig_extension.rst
+++ b/templating/twig_extension.rst
@@ -94,10 +94,10 @@ implementation. Following the same example as before, the first change would be
to remove the ``priceFilter()`` method from the extension and update the PHP
callable defined in ``getFilters()``::
- // src/AppBundle/Twig/AppExtension.php
- namespace AppBundle\Twig;
+ // src/Twig/AppExtension.php
+ namespace App\Twig;
- use AppBundle\Twig\AppRuntime;
+ use App\Twig\AppRuntime;
class AppExtension extends \Twig_Extension
{
@@ -114,8 +114,8 @@ Then, create the new ``AppRuntime`` class (it's not required but these classes
are suffixed with ``Runtime`` by convention) and include the logic of the
previous ``priceFilter()`` method::
- // src/AppBundle/Twig/AppRuntime.php
- namespace AppBundle\Twig;
+ // src/Twig/AppRuntime.php
+ namespace App\Twig;
class AppRuntime
{
@@ -147,7 +147,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
# app/config/services.yml
services:
app.twig_runtime:
- class: AppBundle\Twig\AppRuntime
+ class: App\Twig\AppRuntime
public: false
tags:
- { name: twig.runtime }
@@ -163,7 +163,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
@@ -173,7 +173,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
.. code-block:: php
// app/config/services.php
- use AppBundle\Twig\AppExtension;
+ use App\Twig\AppExtension;
$container
->register('app.twig_runtime', AppRuntime::class)