Skip to content

Added 'host' option to firewall configuration #8905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2013
Merged

Added 'host' option to firewall configuration #8905

merged 1 commit into from
Sep 5, 2013

Conversation

pkruithof
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #7103
License MIT
Doc PR

This is a follow-up of #8880.

@pkruithof
Copy link
Contributor Author

ping @fabpot

fabpot added a commit that referenced this pull request Sep 5, 2013
This PR was merged into the master branch.

Discussion
----------

Added 'host' option to firewall configuration

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7103
| License       | MIT
| Doc PR        |

This is a follow-up of #8880.

Commits
-------

94d648b Added 'host' option to firewall configuration
@fabpot fabpot closed this Sep 5, 2013
@fabpot fabpot merged commit 94d648b into symfony:master Sep 5, 2013
@@ -244,8 +244,10 @@ private function createFirewall(ContainerBuilder $container, $id, $firewall, &$a
$matcher = null;
if (isset($firewall['request_matcher'])) {
$matcher = new Reference($firewall['request_matcher']);
} elseif (isset($firewall['pattern'])) {
$matcher = $this->createRequestMatcher($container, $firewall['pattern']);
} elseif (isset($firewall['pattern']) || isset($firewall['host'])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabpot what about renaming pattern to path to be consistent with routing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed that some time ago, but that's not going to happen. This is really a pattern, not a path

@jrmgx
Copy link

jrmgx commented Oct 15, 2013

Hello, how could we achieve the same prior to 2.4 ?

@stof
Copy link
Member

stof commented Oct 15, 2013

@GiGiGan configure your firewall to use a custom request matcher (so that you can configure it with the settings you want)

services:
    acme_demo.firewall_matcher:
        class: Symfony\Component\HttpFoundation\RequestMatcher
        arguments: [null, 'admin.example.org']

security:
    firewalls:
        main:
            request_matcher = acme_demo.firewall_matcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy