]> Raphaƫl G. Git Repositories - treebundle/blobdiff - Resources/config/packages/rapsystree.yaml
Add package and route configuration
[treebundle] / Resources / config / packages / rapsystree.yaml
diff --git a/Resources/config/packages/rapsystree.yaml b/Resources/config/packages/rapsystree.yaml
new file mode 100644 (file)
index 0000000..88c2aea
--- /dev/null
@@ -0,0 +1,32 @@
+# Parameters configuration
+parameters:
+
+# Services configuration
+services:
+    # Register tree controller
+    Rapsys\TreeBundle\Controller\TreeController:
+        arguments: [ '@service_container', '@twig' ]
+        tags: [ 'controller.service_arguments' ]
+
+# Twig Configuration
+twig:
+    # Enforce debug
+    #auto_reload: ~
+    debug: '%kernel.debug%'
+    #strict_variables: '%kernel.debug%'
+
+    # Disable cache
+    # XXX: enable forced regeneration of css and js at each page load
+    cache: false
+
+    # Fix form layout for css
+    # XXX: @RapsysTree is a shortcut to vendor/rapsys/treebundle/Resources/views directory here
+    #form_theme: [ '@RapsysTree/form/form_div_layout.html.twig' ]
+
+    # Set twig paths
+    paths:
+        # Required by email.image(site_logo) directive
+        # XXX: Allow twig to resolve @RapsysTree/png/logo.png in vendor/rapsys/treebundle/Resources/public/png/logo.png
+        '%kernel.project_dir%/vendor/rapsys/treebundle/Resources/public': 'RapsysTree'
+    # Override default exception controller
+    #exception_controller: Rapsys\TreeBundle\Controller\ErrorController::preview