diff --git a/book/page_creation.rst b/book/page_creation.rst index f90ae6d4f48..a300a4b599c 100644 --- a/book/page_creation.rst +++ b/book/page_creation.rst @@ -586,7 +586,6 @@ method of the ``AppKernel`` class:: new Symfony\Bundle\DoctrineBundle\DoctrineBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), - new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { diff --git a/bundles/map.rst.inc b/bundles/map.rst.inc index 44424cc6a1d..92d742ce70c 100644 --- a/bundles/map.rst.inc +++ b/bundles/map.rst.inc @@ -1,10 +1,5 @@ * :doc:`SensioFrameworkExtraBundle ` * :doc:`SensioGeneratorBundle ` -* `JMSSecurityExtraBundle`_ -* `JMSDiExtraBundle`_ * :doc:`DoctrineFixturesBundle ` * :doc:`DoctrineMigrationsBundle ` * :doc:`DoctrineMongoDBBundle ` - -.. _`JMSSecurityExtraBundle`: http://jmsyst.com/bundles/JMSSecurityExtraBundle/1.2 -.. _`JMSDiExtraBundle`: http://jmsyst.com/bundles/JMSDiExtraBundle/1.1 diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index 30cffa72fb3..9ece99f9acb 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -105,7 +105,6 @@ a single ``Bundle`` class that describes it:: new Symfony\Bundle\DoctrineBundle\DoctrineBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), - new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { diff --git a/quick_tour/the_controller.rst b/quick_tour/the_controller.rst index 51a160204be..e1d840c0d1d 100755 --- a/quick_tour/the_controller.rst +++ b/quick_tour/the_controller.rst @@ -207,28 +207,6 @@ Going to the ``http://localhost/app_dev.php/demo/secured/hello`` URL will automatically redirect you to the login form because this resource is protected by a ``firewall``. -You can also force the action to require a given role by using the ``@Secure`` -annotation on the controller:: - - use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; - use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; - use JMS\SecurityExtraBundle\Annotation\Secure; - - /** - * @Route("/hello/admin/{name}", name="_demo_secured_hello_admin") - * @Secure(roles="ROLE_ADMIN") - * @Template() - */ - public function helloAdminAction($name) - { - return array('name' => $name); - } - -Now, log in as ``user`` (who does *not* have the ``ROLE_ADMIN`` role) and -from the secured hello page, click on the "Hello resource secured" link. -Symfony2 should return a 403 HTTP status code, indicating that the user -is "forbidden" from accessing that resource. - .. note:: The Symfony2 security layer is very flexible and comes with many different