-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Add a way to match a specific scheme in RequestMatcher #10556 #10667
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
Conversation
jjsaunier
commented
Apr 9, 2014
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #10556 |
License | MIT |
Doc PR | no |
@@ -157,4 +185,4 @@ public function matches(Request $request) | |||
// foreach above or else your check might not be run! | |||
return count($this->ips) === 0; | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be reverted.
@@ -46,24 +46,49 @@ class RequestMatcher implements RequestMatcherInterface | |||
private $attributes = array(); | |||
|
|||
/** | |||
* @var string[] | |||
*/ | |||
protected $schemes = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be private
@@ -43,6 +43,25 @@ public function testMethodFixtures() | |||
); | |||
} | |||
|
|||
public function testScheme() | |||
{ | |||
$httpsRequest = $request = $request = Request::create('', 'get', array(), array(), array(), array('HTTPS' => 'on')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many variables assigned, here and line below.
All are ok for you ? |
$ips = null, | ||
array $attributes = array(), | ||
$schemes = null | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Property found for PSR-2 ! @fabpot fabbot didnt find the coding standard just above, is what it's expected behavior or not ? |
$ips = null, | ||
array $attributes = array(), | ||
$schemes = null | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be on one line as before.
That can be merge ? |
Not before 2.6 which is going to starts in about a month. |
ok |