Skip to content

Commit 2bee844

Browse files
committed
minor #9411 Removed some wrong mentions to AppBundle (javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Removed some wrong mentions to AppBundle There are still other mentions to AppBundle, but they look legit. Commits ------- 7a6d37d Removed some wrong mentions to AppBundle
2 parents 800a9a8 + 7a6d37d commit 2bee844

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ using a special "tag":
9191
http://symfony.com/schema/dic/services/services-1.0.xsd">
9292
9393
<services>
94-
<service id="AppBundle\EventListener\ExceptionListener">
94+
<service id="App\EventListener\ExceptionListener">
9595
<tag name="kernel.event_listener" event="kernel.exception" />
9696
</service>
9797
</services>

http_cache/esi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
139139
<!-- you can use a controller reference -->
140140
<?php echo $view['actions']->render(
141141
new Symfony\Component\HttpKernel\Controller\ControllerReference(
142-
'AppBundle:News:latest',
142+
'App\Controller\NewsController::latest',
143143
array('maxPerPage' => 5)
144144
),
145145
array('strategy' => 'esi')

service_container/factories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Configuration of the service container then looks like this:
152152
.. code-block:: yaml
153153
154154
# config/services.yaml
155-
AppBundle\Email\NewsletterManager:
155+
App\Email\NewsletterManager:
156156
# new syntax
157157
factory: 'App\Email\NewsletterManagerFactory:createNewsletterManager'
158158
# old syntax

templating/twig_extension.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ implementation. Following the same example as before, the first change would be
9494
to remove the ``priceFilter()`` method from the extension and update the PHP
9595
callable defined in ``getFilters()``::
9696

97-
// src/AppBundle/Twig/AppExtension.php
98-
namespace AppBundle\Twig;
97+
// src/Twig/AppExtension.php
98+
namespace App\Twig;
9999

100-
use AppBundle\Twig\AppRuntime;
100+
use App\Twig\AppRuntime;
101101

102102
class AppExtension extends \Twig_Extension
103103
{
@@ -114,8 +114,8 @@ Then, create the new ``AppRuntime`` class (it's not required but these classes
114114
are suffixed with ``Runtime`` by convention) and include the logic of the
115115
previous ``priceFilter()`` method::
116116

117-
// src/AppBundle/Twig/AppRuntime.php
118-
namespace AppBundle\Twig;
117+
// src/Twig/AppRuntime.php
118+
namespace App\Twig;
119119

120120
class AppRuntime
121121
{
@@ -147,7 +147,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
147147
# app/config/services.yml
148148
services:
149149
app.twig_runtime:
150-
class: AppBundle\Twig\AppRuntime
150+
class: App\Twig\AppRuntime
151151
public: false
152152
tags:
153153
- { name: twig.runtime }
@@ -163,7 +163,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
163163
164164
<services>
165165
<service id="app.twig_runtime"
166-
class="AppBundle\Twig\AppRuntime"
166+
class="App\Twig\AppRuntime"
167167
public="false">
168168
<tag name="twig.runtime" />
169169
</service>
@@ -173,7 +173,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``
173173
.. code-block:: php
174174
175175
// app/config/services.php
176-
use AppBundle\Twig\AppExtension;
176+
use App\Twig\AppExtension;
177177
178178
$container
179179
->register('app.twig_runtime', AppRuntime::class)

0 commit comments

Comments
 (0)