PHP Classes

File: lib/acme/foo-bundle/Resources/config/services.xml

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Symfony Create Bundle Skeleton  >  lib/acme/foo-bundle/Resources/config/services.xml  >  Download  
File: lib/acme/foo-bundle/Resources/config/services.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Symfony Create Bundle Skeleton
Application to create reusable Symfony Bundles
Author: By
Last change:
Date: 2 years ago
Size: 2,101 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns=""

        <!-- TODO: Add you parameters here -->
        <parameter key="" />
        <parameter key="acme_foo.integer_foo" />
        <parameter key="acme_foo.integer_bar" />
        <!-- TODO: Add your services here -->
        <!-- Service -->
        <service id="acme_foo.service" class="Acme\FooBundle\Service\Service">
            <!-- TODO: Add your service constructor parameters here -->
            <argument key="$em" type="service" id="doctrine.orm.entity_manager"/>
            <argument key="$token" type="service" id="security.token_storage"/>
            <argument key="$requestStack" type="service" id="request_stack"/>
            <argument key="$translator" type="service" id="translator"/>
            <argument key="$bar" type="string"></argument>
            <argument key="$integerFoo" type="string">%acme_foo.integer_foo%</argument>
            <argument key="$integerBar" type="string">%acme_foo.integer_bar%</argument>

        <!-- TODO: Add the alias for your services here -->
        <service id="Acme\FooBundle\Service\Service" alias="acme_foo.service" />
        <!-- End Service -->

        <!-- TODO: Add your controllers here -->
        <!-- Controller -->
        <service id="acme_foo.controller" class="Acme\FooBundle\Controller\AcmeFooController" public="true">
            <!-- TODO: Add your controller constructor parameters here -->
            <argument key="$service" type="service" id="acme_foo.service"/>

        <!-- TODO: Add the alias for your controllers here -->
        <service id="Acme\FooBundle\Controller\AcmeFooController" alias="acme_foo.controller" public="true"/>
        <!-- End Controller -->
For more information send a message to info at phpclasses dot org.