Skip to content

remove remaining AppBundle references #10032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ It's commonly used to :doc:`embed controllers in templates </templating/embeddin

{# if you don't want to expose the controller with a public URL, use
the controller() function to define the controller to be executed #}
{{ render(controller('AppBundle:Default:latestArticles', {num: 5})) }}
{{ render(controller('App\\Controller\\DefaultController::latestArticles', {num: 5})) }}

The render strategy can be specified in the ``strategy`` key of the options.

Expand Down
4 changes: 2 additions & 2 deletions service_container/service_decoration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ the original service is lost:
<services>
<service id="App\Mailer" />

<!-- this replaces the old AppBundle\Mailer definition with the new
<!-- this replaces the old App\Mailer definition with the new
one, the old definition is lost -->
<service id="App\Mailer" class="App\DecoratingMailer" />
</services>
Expand All @@ -45,7 +45,7 @@ the original service is lost:

$container->register(Mailer::class);

// this replaces the old AppBundle\Mailer definition with the new one, the
// this replaces the old App\Mailer definition with the new one, the
// old definition is lost
$container->register(Mailer::class, DecoratingMailer::class);

Expand Down
18 changes: 9 additions & 9 deletions service_container/service_subscribers_locators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ Use its ``getSubscribedServices()`` method to include as many services as needed
in the service subscriber and change the type hint of the container to
a PSR-11 ``ContainerInterface``::

// src/AppBundle/CommandBus.php
namespace AppBundle;
// src/CommandBus.php
namespace App;

use AppBundle\CommandHandler\BarHandler;
use AppBundle\CommandHandler\FooHandler;
use App\CommandHandler\BarHandler;
use App\CommandHandler\FooHandler;
use Psr\Container\ContainerInterface;
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;

Expand All @@ -91,8 +91,8 @@ a PSR-11 ``ContainerInterface``::
public static function getSubscribedServices()
{
return [
'AppBundle\FooCommand' => FooHandler::class,
'AppBundle\BarCommand' => BarHandler::class,
'App\FooCommand' => FooHandler::class,
'App\BarCommand' => BarHandler::class,
];
}

Expand Down Expand Up @@ -204,7 +204,7 @@ service type to a service.

// app/config/services.yml
services:
AppBundle\CommandBus:
App\CommandBus:
tags:
- { name: 'container.service_subscriber', key: 'logger', id: 'monolog.logger.event' }

Expand All @@ -218,7 +218,7 @@ service type to a service.

<services>

<service id="AppBundle\CommandBus">
<service id="App\CommandBus">
<tag name="container.service_subscriber" key="logger" id="monolog.logger.event" />
</service>

Expand All @@ -228,7 +228,7 @@ service type to a service.
.. code-block:: php

// app/config/services.php
use AppBundle\CommandBus;
use App\CommandBus;

// ...

Expand Down