瀏覽代碼

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
     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:
 ``http://yoursite.local/admin/dashboard``.