diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 08:30:07 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 08:30:07 +0100 |
commit | 93fd4692f6eb753cae16358131c8049d84cfbb41 (patch) | |
tree | 1ef2f66eb378cf419d1aa033a2c772539e60537d /src/Acme/DemoBundle/Resources/config | |
parent | 0440249631164a378981d014bf71b617c082bf5a (diff) | |
download | wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip |
symfony is there
Diffstat (limited to 'src/Acme/DemoBundle/Resources/config')
-rw-r--r-- | src/Acme/DemoBundle/Resources/config/routing.yml | 12 | ||||
-rw-r--r-- | src/Acme/DemoBundle/Resources/config/services.xml | 18 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/Acme/DemoBundle/Resources/config/routing.yml b/src/Acme/DemoBundle/Resources/config/routing.yml new file mode 100644 index 00000000..06291a23 --- /dev/null +++ b/src/Acme/DemoBundle/Resources/config/routing.yml | |||
@@ -0,0 +1,12 @@ | |||
1 | _welcome: | ||
2 | path: / | ||
3 | defaults: { _controller: AcmeDemoBundle:Welcome:index } | ||
4 | |||
5 | _demo_secured: | ||
6 | resource: "@AcmeDemoBundle/Controller/SecuredController.php" | ||
7 | type: annotation | ||
8 | |||
9 | _demo: | ||
10 | resource: "@AcmeDemoBundle/Controller/DemoController.php" | ||
11 | type: annotation | ||
12 | prefix: /demo | ||
diff --git a/src/Acme/DemoBundle/Resources/config/services.xml b/src/Acme/DemoBundle/Resources/config/services.xml new file mode 100644 index 00000000..d6274ce9 --- /dev/null +++ b/src/Acme/DemoBundle/Resources/config/services.xml | |||
@@ -0,0 +1,18 @@ | |||
1 | <?xml version="1.0" ?> | ||
2 | |||
3 | <container xmlns="http://symfony.com/schema/dic/services" | ||
4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
5 | xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
6 | |||
7 | <services> | ||
8 | <service id="twig.extension.acme.demo" class="Acme\DemoBundle\Twig\Extension\DemoExtension" public="false"> | ||
9 | <tag name="twig.extension" /> | ||
10 | <argument type="service" id="twig.loader" /> | ||
11 | </service> | ||
12 | |||
13 | <service id="acme.demo.listener" class="Acme\DemoBundle\EventListener\ControllerListener"> | ||
14 | <tag name="kernel.event_listener" event="kernel.controller" method="onKernelController" /> | ||
15 | <argument type="service" id="twig.extension.acme.demo" /> | ||
16 | </service> | ||
17 | </services> | ||
18 | </container> | ||