@@ -101,12 +101,12 @@ to a specific feature, including PHP classes, configuration, and even stylesheet
101101and JavaScript files (see :ref: `page-creation-bundles `).
102102
103103Depending on the way you installed Symfony, you may already have a bundle called
104- `` AcmeDemoBundle `` . Browse the ``src/ `` directory of your project and check
104+ AcmeDemoBundle. Browse the ``src/ `` directory of your project and check
105105if there is a ``DemoBundle/ `` directory inside an ``Acme/ `` directory. If those
106106directories already exist, skip the rest of this section and go directly to
107107create the route.
108108
109- To create a bundle called `` AcmeDemoBundle `` (a play bundle that you'll
109+ To create a bundle called AcmeDemoBundle (a play bundle that you'll
110110build in this chapter), run the following command and follow the on-screen
111111instructions (use all the default options):
112112
@@ -140,8 +140,8 @@ By default, the routing configuration file in a Symfony application is
140140located at ``app/config/routing.yml ``. Like all configuration in Symfony,
141141you can also choose to use XML or PHP out of the box to configure routes.
142142
143- If you look at the main routing file, you'll see that Symfony already added
144- an entry when you generated the `` AcmeDemoBundle `` :
143+ If you look at the main routing file, you'll see that Symfony already added an
144+ entry when you generated the AcmeDemoBundle:
145145
146146.. configuration-block ::
147147
@@ -181,9 +181,10 @@ an entry when you generated the ``AcmeDemoBundle``:
181181
182182 This entry is pretty basic: it tells Symfony to load routing configuration
183183from the ``Resources/config/routing.yml `` (``routing.xml `` or ``routing.php ``
184- in the XML and PHP code example respectively) file that lives inside the ``AcmeDemoBundle ``.
185- This means that you place routing configuration directly in ``app/config/routing.yml ``
186- or organize your routes throughout your application, and import them from here.
184+ in the XML and PHP code example respectively) file that lives inside the
185+ AcmeDemoBundle. This means that you place routing configuration directly in
186+ ``app/config/routing.yml `` or organize your routes throughout your application,
187+ and import them from here.
187188
188189.. note ::
189190
@@ -255,7 +256,7 @@ that controller.
255256The controller - ``AcmeDemoBundle:Random:index `` is the *logical * name of
256257the controller, and it maps to the ``indexAction `` method of a PHP class
257258called ``Acme\DemoBundle\Controller\RandomController ``. Start by creating this
258- file inside your `` AcmeDemoBundle `` ::
259+ file inside your AcmeDemoBundle::
259260
260261 // src/Acme/DemoBundle/Controller/RandomController.php
261262 namespace Acme\DemoBundle\Controller;
@@ -388,7 +389,7 @@ location using the following convention.
388389
389390 **/path/to/BundleName **/Resources/views/**ControllerName **/**TemplateName **
390391
391- In this case, `` AcmeDemoBundle `` is the bundle name, ``Random `` is the
392+ In this case, AcmeDemoBundle is the bundle name, ``Random `` is the
392393controller, and ``index.html.twig `` the template:
393394
394395.. configuration-block ::
@@ -636,7 +637,7 @@ in your application and to optimize them the way you want.
636637 to the organization and best practices of :doc: `bundles </cookbook/bundles/best_practices >`.
637638
638639A bundle is simply a structured set of files within a directory that implement
639- a single feature. You might create a `` BlogBundle `` , a `` ForumBundle `` or
640+ a single feature. You might create a BlogBundle, a ForumBundle or
640641a bundle for user management (many of these exist already as open source
641642bundles). Each directory contains everything related to that feature, including
642643PHP files, templates, stylesheets, JavaScripts, tests and anything else.
@@ -685,13 +686,13 @@ The Symfony Standard Edition comes with a handy task that creates a fully-functi
685686bundle for you. Of course, creating a bundle by hand is pretty easy as well.
686687
687688To show you how simple the bundle system is, create a new bundle called
688- `` AcmeTestBundle `` and enable it.
689+ AcmeTestBundle and enable it.
689690
690691.. tip ::
691692
692693 The ``Acme `` portion is just a dummy name that should be replaced by
693- some "vendor" name that represents you or your organization (e.g. `` ABCTestBundle ``
694- for some company named ``ABC ``).
694+ some "vendor" name that represents you or your organization (e.g.
695+ ABCTestBundle for some company named ``ABC ``).
695696
696697Start by creating a ``src/Acme/TestBundle/ `` directory and adding a new file
697698called ``AcmeTestBundle.php ``::
@@ -707,9 +708,10 @@ called ``AcmeTestBundle.php``::
707708
708709.. tip ::
709710
710- The name ``AcmeTestBundle `` follows the standard :ref: `Bundle naming conventions <bundles-naming-conventions >`.
711- You could also choose to shorten the name of the bundle to simply ``TestBundle ``
712- by naming this class ``TestBundle `` (and naming the file ``TestBundle.php ``).
711+ The name AcmeTestBundle follows the standard
712+ :ref: `Bundle naming conventions <bundles-naming-conventions >`. You could
713+ also choose to shorten the name of the bundle to simply TestBundle by naming
714+ this class TestBundle (and naming the file ``TestBundle.php ``).
713715
714716This empty class is the only piece you need to create the new bundle. Though
715717commonly empty, this class is powerful and can be used to customize the behavior
@@ -730,8 +732,7 @@ Now that you've created the bundle, enable it via the ``AppKernel`` class::
730732 return $bundles;
731733 }
732734
733- And while it doesn't do anything yet, ``AcmeTestBundle `` is now ready to
734- be used.
735+ And while it doesn't do anything yet, AcmeTestBundle is now ready to be used.
735736
736737And as easy as this is, Symfony also provides a command-line interface for
737738generating a basic bundle skeleton:
@@ -755,8 +756,8 @@ Bundle Directory Structure
755756
756757The directory structure of a bundle is simple and flexible. By default, the
757758bundle system follows a set of conventions that help to keep code consistent
758- between all Symfony bundles. Take a look at `` AcmeDemoBundle `` , as it contains
759- some of the most common elements of a bundle:
759+ between all Symfony bundles. Take a look at AcmeDemoBundle, as it contains some
760+ of the most common elements of a bundle:
760761
761762``Controller/ ``
762763 Contains the controllers of the bundle (e.g. ``RandomController.php ``).
0 commit comments