Skip to content

Commit

Permalink
[Security] Configure ports in RetryAuthenticationEntryPoint according…
Browse files Browse the repository at this point in the history
… to router settings

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes

Currently the ports in RetryAuthenticationEntryPoint are fixed in the constructor call, there is no way to set them when you run your application on different ports.

With this fix the ports are taken from the router configuration.
  • Loading branch information
uwej711 committed Apr 30, 2012
1 parent b66b6fc commit 7fe236a
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -51,7 +51,10 @@
<argument /> <!-- Key -->
</service>

<service id="security.authentication.retry_entry_point" class="%security.authentication.retry_entry_point.class%" public="false" />
<service id="security.authentication.retry_entry_point" class="%security.authentication.retry_entry_point.class%" public="false">
<argument>%request_listener.http_port%</argument>
<argument>%request_listener.https_port%</argument>
</service>

<service id="security.authentication.basic_entry_point" class="%security.authentication.basic_entry_point.class%" public="false" />

Expand Down

0 comments on commit 7fe236a

Please sign in to comment.