Skip to content

Commit 635d4fa

Browse files
committed
minor #10032 remove remaining AppBundle references (xabbuh)
This PR was merged into the 4.0 branch. Discussion ---------- remove remaining AppBundle references Commits ------- 109901d remove remaining AppBundle references
2 parents ad41667 + 109901d commit 635d4fa

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

reference/twig_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ It's commonly used to :doc:`embed controllers in templates </templating/embeddin
6565
6666
{# if you don't want to expose the controller with a public URL, use
6767
the controller() function to define the controller to be executed #}
68-
{{ render(controller('AppBundle:Default:latestArticles', {num: 5})) }}
68+
{{ render(controller('App\\Controller\\DefaultController::latestArticles', {num: 5})) }}
6969
7070
The render strategy can be specified in the ``strategy`` key of the options.
7171

service_container/service_decoration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ the original service is lost:
3131
<services>
3232
<service id="App\Mailer" />
3333
34-
<!-- this replaces the old AppBundle\Mailer definition with the new
34+
<!-- this replaces the old App\Mailer definition with the new
3535
one, the old definition is lost -->
3636
<service id="App\Mailer" class="App\DecoratingMailer" />
3737
</services>
@@ -45,7 +45,7 @@ the original service is lost:
4545
4646
$container->register(Mailer::class);
4747
48-
// this replaces the old AppBundle\Mailer definition with the new one, the
48+
// this replaces the old App\Mailer definition with the new one, the
4949
// old definition is lost
5050
$container->register(Mailer::class, DecoratingMailer::class);
5151

service_container/service_subscribers_locators.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Use its ``getSubscribedServices()`` method to include as many services as needed
7171
in the service subscriber and change the type hint of the container to
7272
a PSR-11 ``ContainerInterface``::
7373

74-
// src/AppBundle/CommandBus.php
75-
namespace AppBundle;
74+
// src/CommandBus.php
75+
namespace App;
7676

77-
use AppBundle\CommandHandler\BarHandler;
78-
use AppBundle\CommandHandler\FooHandler;
77+
use App\CommandHandler\BarHandler;
78+
use App\CommandHandler\FooHandler;
7979
use Psr\Container\ContainerInterface;
8080
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
8181

@@ -91,8 +91,8 @@ a PSR-11 ``ContainerInterface``::
9191
public static function getSubscribedServices()
9292
{
9393
return [
94-
'AppBundle\FooCommand' => FooHandler::class,
95-
'AppBundle\BarCommand' => BarHandler::class,
94+
'App\FooCommand' => FooHandler::class,
95+
'App\BarCommand' => BarHandler::class,
9696
];
9797
}
9898

@@ -204,7 +204,7 @@ service type to a service.
204204
205205
// app/config/services.yml
206206
services:
207-
AppBundle\CommandBus:
207+
App\CommandBus:
208208
tags:
209209
- { name: 'container.service_subscriber', key: 'logger', id: 'monolog.logger.event' }
210210
@@ -218,7 +218,7 @@ service type to a service.
218218
219219
<services>
220220
221-
<service id="AppBundle\CommandBus">
221+
<service id="App\CommandBus">
222222
<tag name="container.service_subscriber" key="logger" id="monolog.logger.event" />
223223
</service>
224224
@@ -228,7 +228,7 @@ service type to a service.
228228
.. code-block:: php
229229
230230
// app/config/services.php
231-
use AppBundle\CommandBus;
231+
use App\CommandBus;
232232
233233
// ...
234234

0 commit comments

Comments
 (0)