Skip to content

Commit 227ba82

Browse files
committed
removed non-MIT/BSD licensed code from Symfony SE
1 parent 6b087ee commit 227ba82

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

book/page_creation.rst

-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ method of the ``AppKernel`` class::
586586
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
587587
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
588588
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
589-
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
590589
);
591590

592591
if (in_array($this->getEnvironment(), array('dev', 'test'))) {

bundles/map.rst.inc

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
* :doc:`SensioFrameworkExtraBundle </bundles/SensioFrameworkExtraBundle/index>`
22
* :doc:`SensioGeneratorBundle </bundles/SensioGeneratorBundle/index>`
3-
* `JMSSecurityExtraBundle`_
4-
* `JMSDiExtraBundle`_
53
* :doc:`DoctrineFixturesBundle </bundles/DoctrineFixturesBundle/index>`
64
* :doc:`DoctrineMigrationsBundle </bundles/DoctrineMigrationsBundle/index>`
75
* :doc:`DoctrineMongoDBBundle </bundles/DoctrineMongoDBBundle/index>`
8-
9-
.. _`JMSSecurityExtraBundle`: http://jmsyst.com/bundles/JMSSecurityExtraBundle/1.2
10-
.. _`JMSDiExtraBundle`: http://jmsyst.com/bundles/JMSDiExtraBundle/1.1

quick_tour/the_architecture.rst

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ a single ``Bundle`` class that describes it::
105105
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
106106
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
107107
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
108-
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
109108
);
110109

111110
if (in_array($this->getEnvironment(), array('dev', 'test'))) {

quick_tour/the_controller.rst

-22
Original file line numberDiff line numberDiff line change
@@ -207,28 +207,6 @@ Going to the ``http://localhost/app_dev.php/demo/secured/hello``
207207
URL will automatically redirect you to the login form because this resource is
208208
protected by a ``firewall``.
209209

210-
You can also force the action to require a given role by using the ``@Secure``
211-
annotation on the controller::
212-
213-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
214-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
215-
use JMS\SecurityExtraBundle\Annotation\Secure;
216-
217-
/**
218-
* @Route("/hello/admin/{name}", name="_demo_secured_hello_admin")
219-
* @Secure(roles="ROLE_ADMIN")
220-
* @Template()
221-
*/
222-
public function helloAdminAction($name)
223-
{
224-
return array('name' => $name);
225-
}
226-
227-
Now, log in as ``user`` (who does *not* have the ``ROLE_ADMIN`` role) and
228-
from the secured hello page, click on the "Hello resource secured" link.
229-
Symfony2 should return a 403 HTTP status code, indicating that the user
230-
is "forbidden" from accessing that resource.
231-
232210
.. note::
233211

234212
The Symfony2 security layer is very flexible and comes with many different

0 commit comments

Comments
 (0)