Преглед изворни кода

Added note for people as curious as I was about the "resource: ." setting!

Christian Morgan пре 11 година
родитељ
комит
b647c2e505
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      Resources/doc/reference/getting_started.rst

+ 7 - 0
Resources/doc/reference/getting_started.rst

@@ -35,6 +35,13 @@ to your application's routing file:
     the above routing configuration must be placed in routing.xml or
     the above routing configuration must be placed in routing.xml or
     routing.php according to your format (i.e. XML or PHP).
     routing.php according to your format (i.e. XML or PHP).
 
 
+.. note::
+
+    For those curious about the ``resource: .`` setting: it is unusual syntax but used 
+    because Symfony requires a resource to be defined (which points to a real file). 
+    Once this validation passes Sonata's ``AdminPoolLoader`` is in charge of processing 
+    this route and it simply ignores the resource setting.
+
 At this point you can already access the (empty) admin dashboard by visiting the url:
 At this point you can already access the (empty) admin dashboard by visiting the url:
 ``http://yoursite.local/admin/dashboard``.
 ``http://yoursite.local/admin/dashboard``.