소스 검색

sonata:admin:generate - replace backslashes with forward slashes

Within the online documentation, the command to generate a Sonata Admin class is specified as:
php app/console sonata:admin:generate YourNS\FooBundle\Entity\Bar

However, this appears to throw up an error message stating that a fully qualified class model does not exist.
Using forward slashes instead of back slashes works without throwing back this message and ensures that the admin class is successfully generated, e.g.

php app/console sonata:admin:generate YourNS/FooBundle/Entity/Bar
Dave Cox 10 년 전
부모
커밋
d2adfb0f41
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/doc/reference/console.rst

+ 1 - 1
Resources/doc/reference/console.rst

@@ -45,7 +45,7 @@ Usage example:
 
 .. code-block:: bash
 
-    php app/console sonata:admin:generate YourNS\FooBundle\Entity\Bar
+    php app/console sonata:admin:generate YourNS/FooBundle/Entity/Bar
 
 
 sonata:admin:list