sonata_admin.xml 1.9 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
  3. <route id="sonata_admin_redirect" path="/">
  4. <default key="_controller">FrameworkBundle:Redirect:redirect</default>
  5. <default key="route">sonata_admin_dashboard</default>
  6. <default key="permanent">true</default>
  7. </route>
  8. <route id="sonata_admin_dashboard" path="/dashboard">
  9. <default key="_controller">SonataAdminBundle:Core:dashboard</default>
  10. </route>
  11. <route id="sonata_admin_retrieve_form_element" path="/core/get-form-field-element">
  12. <default key="_controller">sonata.admin.controller.admin:retrieveFormFieldElementAction</default>
  13. </route>
  14. <route id="sonata_admin_append_form_element" path="/core/append-form-field-element">
  15. <default key="_controller">sonata.admin.controller.admin:appendFormFieldElementAction</default>
  16. </route>
  17. <route id="sonata_admin_short_object_information" path="/core/get-short-object-description.{_format}">
  18. <default key="_controller">sonata.admin.controller.admin:getShortObjectDescriptionAction</default>
  19. <default key="_format">html</default>
  20. <requirement key="_format">html|json</requirement>
  21. </route>
  22. <route id="sonata_admin_set_object_field_value" path="/core/set-object-field-value">
  23. <default key="_controller">sonata.admin.controller.admin:setObjectFieldValueAction</default>
  24. </route>
  25. <route id="sonata_admin_search" path="/search">
  26. <default key="_controller">SonataAdminBundle:Core:search</default>
  27. </route>
  28. <route id="sonata_admin_retrieve_autocomplete_items" path="/core/get-autocomplete-items">
  29. <default key="_controller">sonata.admin.controller.admin:retrieveAutocompleteItemsAction</default>
  30. </route>
  31. </routes>