Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Lazy load user providers#23295

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromchalasr:lazy-user-providers
Jul 11, 2017

Conversation

chalasr
Copy link
Member

QA
Branch?3.4
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

@chalasr
Copy link
MemberAuthor

build failure with high deps is normal

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneJul 3, 2017
/**
* @param iterable $providers
*/
public function __construct(/* iterable */ $providers)

Choose a reason for hiding this comment

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

the comment should be removed

@@ -44,7 +44,7 @@ class ContextListener implements ListenerInterface
private $registered;
private $trustResolver;

public function __construct(TokenStorageInterface $tokenStorage,array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null)
public function __construct(TokenStorageInterface $tokenStorage,/* iterable */ $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null)

Choose a reason for hiding this comment

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

comment to be removed, that's the job of a docblock, we should not follow this practice IMHO

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

with minor comments

@chalasrchalasrforce-pushed thelazy-user-providers branch 7 times, most recently frome52986c to70bcfe2CompareJuly 3, 2017 12:25
@chalasr
Copy link
MemberAuthor

@nicolas-grekas comments addressed. build failure unrelated (see#23360)

@@ -47,19 +47,6 @@ public function testItRequiresContextKey()
);
}

/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage User provider "stdClass" must implement "Symfony\Component\Security\Core\User\UserProviderInterface
Copy link
Member

Choose a reason for hiding this comment

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

we should still have a test covering this case. You have not removed the exception entirely. You just moved it later in the usage.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

test readded

@chalasr
Copy link
MemberAuthor

ready.

* @param EventDispatcherInterface|null $dispatcher
* @param AuthenticationTrustResolverInterface|null $trustResolver
*/
public function __construct(TokenStorageInterface $tokenStorage, $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

full docblock to be removed +iterable typehint to be added to the$userProviders arg when merging into master.

/**
* @param iterable|UserProviderInterface[] $providers
*/
public function __construct($providers)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

same, docblock to typehint when merging into master

@nicolas-grekas
Copy link
Member

Thank you@chalasr.

@nicolas-grekasnicolas-grekas merged commitd7914a6 intosymfony:3.4Jul 11, 2017
nicolas-grekas added a commit that referenced this pull requestJul 11, 2017
This PR was merged into the 3.4 branch.Discussion----------[Security] Lazy load user providers| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aCommits-------d7914a6 [Security] Lazy load user providers
@chalasrchalasr deleted the lazy-user-providers branchJuly 11, 2017 14:15
This was referencedOct 18, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof requested changes

@fabpotfabpotfabpot approved these changes

@dunglasdunglasdunglas approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@ogizanagiogizanagiogizanagi approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
3.4
Development

Successfully merging this pull request may close these issues.

7 participants
@chalasr@nicolas-grekas@fabpot@dunglas@stof@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp