Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Closed
wants to merge 10 commits into from

Conversation

jjsaunier
Copy link

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;
}
}
}
Copy link
Contributor

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();
Copy link
Member

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'));
Copy link
Contributor

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.

@jjsaunier
Copy link
Author

All are ok for you ?

$ips = null,
array $attributes = array(),
$schemes = null
)
Copy link
Contributor

Choose a reason for hiding this comment

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

@jjsaunier
Copy link
Author

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
) {
Copy link
Member

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.

@jjsaunier
Copy link
Author

That can be merge ?

@fabpot
Copy link
Member

fabpot commented May 2, 2014

Not before 2.6 which is going to starts in about a month.

@jjsaunier
Copy link
Author

ok

@fabpot fabpot closed this in e814681 Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants