Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update twig_extension.rst#4911

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Belgacem-TLILI wants to merge1 commit intosymfony:2.6fromBelgacem-TLILI:patch-1
Closed
Changes fromall 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
Update twig_extension.rst
  • Loading branch information
@Belgacem-TLILI
Belgacem-TLILI committedJan 24, 2015
commitf173f4983b7f055be82f78ae0a0d5706b18bd13c
6 changes: 3 additions & 3 deletionscookbook/templating/twig_extension.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,15 +73,15 @@ Now you must let the Service Container know about your newly created Twig Extens
# app/config/services.yml
services:
app.twig_extension:
class: AppBundle\Twig\AcmeExtension
class: AppBundle\Twig\AppExtension
tags:
- { name: twig.extension }

.. code-block:: xml

<!-- app/config/services.xml -->
<services>
<service id="app.twig_extension" class="AppBundle\Twig\AcmeExtension">
<service id="app.twig_extension" class="AppBundle\Twig\AppExtension">
<tag name="twig.extension" />
</service>
</services>
Expand All@@ -92,7 +92,7 @@ Now you must let the Service Container know about your newly created Twig Extens
use Symfony\Component\DependencyInjection\Definition;

$container
->register('app.twig_extension', '\AppBundle\Twig\AcmeExtension')
->register('app.twig_extension', '\AppBundle\Twig\AppExtension')
->addTag('twig.extension');

.. note::
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp