Преглед на файлове

Enable the Security bundle

It provides function required by the admin bundle
Grégoire Paris преди 11 години
родител
ревизия
6cbfe265d6
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Resources/doc/reference/installation.rst

+ 4 - 0
Resources/doc/reference/installation.rst

@@ -60,6 +60,10 @@ forget to enable SonataAdminBundle too:
         return array(
             // ...
 
+            // The admin requires some twig functions defined in the security
+            // bundle, like is_granted
+            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
+
             // Add your dependencies
             new Sonata\CoreBundle\SonataCoreBundle(),
             new Sonata\BlockBundle\SonataBlockBundle(),