Skip to content

Removed some wrong mentions to AppBundle #9411

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
Mar 8, 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 event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ using a special "tag":
http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="AppBundle\EventListener\ExceptionListener">
<service id="App\EventListener\ExceptionListener">
<tag name="kernel.event_listener" event="kernel.exception" />
</service>
</services>
Expand Down
2 changes: 1 addition & 1 deletion http_cache/esi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
<!-- you can use a controller reference -->
<?php echo $view['actions']->render(
new Symfony\Component\HttpKernel\Controller\ControllerReference(
'AppBundle:News:latest',
'App\Controller\NewsController::latest',
array('maxPerPage' => 5)
),
array('strategy' => 'esi')
Expand Down
2 changes: 1 addition & 1 deletion service_container/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions templating/twig_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down Expand Up @@ -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 }
Expand All @@ -163,7 +163,7 @@ Finally, register your new class as a service and tag it with ``twig.runtime``

<services>
<service id="app.twig_runtime"
class="AppBundle\Twig\AppRuntime"
class="App\Twig\AppRuntime"
public="false">
<tag name="twig.runtime" />
</service>
Expand All @@ -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)
Expand Down