Skip to content

Commit d14de57

Browse files
committed
[Security] removed XML config
1 parent 10747a8 commit d14de57

26 files changed

+0
-1450
lines changed

doctrine/registration_form.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -293,20 +293,6 @@ encoder in the security configuration:
293293
encoders:
294294
AppBundle\Entity\User: bcrypt
295295
296-
.. code-block:: xml
297-
298-
<!-- app/config/security.xml -->
299-
<?xml version="1.0" charset="UTF-8" ?>
300-
<srv:container xmlns="http://symfony.com/schema/dic/security"
301-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
302-
xmlns:srv="http://symfony.com/schema/dic/services"
303-
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
304-
305-
<config>
306-
<encoder class="AppBundle\Entity\User">bcrypt</encoder>
307-
</config>
308-
</srv:container>
309-
310296
.. code-block:: php
311297
312298
// app/config/security.php

reference/configuration/security.rst

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -155,45 +155,6 @@ encoding algorithm. Also, each algorithm defines different config options:
155155
# MessageDigestPasswordEncoder encoder using SHA512 hashing with default options
156156
AppBundle\Entity\User: 'sha512'
157157
158-
.. code-block:: xml
159-
160-
<!-- app/config/security.xml -->
161-
<?xml version="1.0" charset="UTF-8" ?>
162-
<srv:container xmlns="http://symfony.com/schema/dic/security"
163-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
164-
xmlns:srv="http://symfony.com/schema/dic/services"
165-
xsi:schemaLocation="http://symfony.com/schema/dic/services
166-
https://symfony.com/schema/dic/services/services-1.0.xsd">
167-
168-
<config>
169-
<!-- ... -->
170-
<!-- bcrypt encoder with default options -->
171-
<encoder
172-
class="AppBundle\Entity\User"
173-
algorithm="bcrypt"
174-
/>
175-
176-
<!-- bcrypt encoder with custom options -->
177-
<encoder
178-
class="AppBundle\Entity\User"
179-
algorithm="bcrypt"
180-
cost="15"
181-
/>
182-
183-
<!-- Argon2i encoder with default options -->
184-
<encoder
185-
class="AppBundle\Entity\User"
186-
algorithm="argon2i"
187-
/>
188-
189-
<!-- MessageDigestPasswordEncoder encoder using SHA512 hashing with default options -->
190-
<encoder
191-
class="AppBundle\Entity\User"
192-
algorithm="sha512"
193-
/>
194-
</config>
195-
</srv:container>
196-
197158
.. code-block:: php
198159
199160
// app/config/security.php
@@ -305,28 +266,6 @@ application:
305266
# the rest of options depend on the authentication mechanism
306267
# ...
307268
308-
.. code-block:: xml
309-
310-
<!-- app/config/security.xml -->
311-
<?xml version="1.0" encoding="UTF-8"?>
312-
<srv:container xmlns="http://symfony.com/schema/dic/security"
313-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
314-
xmlns:srv="http://symfony.com/schema/dic/services"
315-
xsi:schemaLocation="http://symfony.com/schema/dic/services
316-
https://symfony.com/schema/dic/services/services-1.0.xsd">
317-
318-
<config>
319-
<!-- ... -->
320-
321-
<!-- 'pattern' is a regular expression matched against the incoming
322-
request URL. If there's a match, authentication is triggered -->
323-
<firewall name="main" pattern="^/admin">
324-
<!-- the rest of options depend on the authentication mechanism -->
325-
<!-- ... -->
326-
</firewall>
327-
</config>
328-
</srv:container>
329-
330269
.. code-block:: php
331270
332271
// app/config/security.php
@@ -633,23 +572,6 @@ To use HTTP-Digest authentication you need to provide a realm and a secret:
633572
secret: '%secret%'
634573
realm: 'secure-api'
635574
636-
.. code-block:: xml
637-
638-
<!-- app/config/security.xml -->
639-
<?xml version="1.0" charset="UTF-8" ?>
640-
<srv:container xmlns="http://symfony.com/schema/dic/security"
641-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
642-
xmlns:srv="http://symfony.com/schema/dic/services"
643-
xsi:schemaLocation="http://symfony.com/schema/dic/services
644-
https://symfony.com/schema/dic/services/services-1.0.xsd">
645-
646-
<config>
647-
<firewall name="somename">
648-
<http-digest secret="%secret%" realm="secure-api"/>
649-
</firewall>
650-
</config>
651-
</srv:container>
652-
653575
.. code-block:: php
654576
655577
// app/config/security.php
@@ -696,26 +618,6 @@ multiple firewalls, the "context" could actually be shared:
696618
# ...
697619
context: my_context
698620
699-
.. code-block:: xml
700-
701-
<!-- app/config/security.xml -->
702-
<?xml version="1.0" charset="UTF-8" ?>
703-
<srv:container xmlns="http://symfony.com/schema/dic/security"
704-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
705-
xmlns:srv="http://symfony.com/schema/dic/services"
706-
xsi:schemaLocation="http://symfony.com/schema/dic/services
707-
https://symfony.com/schema/dic/services/services-1.0.xsd">
708-
709-
<config>
710-
<firewall name="somename" context="my_context">
711-
<!-- ... -->
712-
</firewall>
713-
<firewall name="othername" context="my_context">
714-
<!-- ... -->
715-
</firewall>
716-
</config>
717-
</srv:container>
718-
719621
.. code-block:: php
720622
721623
// app/config/security.php

0 commit comments

Comments
 (0)