-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[User] Change user bundle configuration to be able to support multipl… #5539
[User] Change user bundle configuration to be able to support multipl… #5539
Conversation
Arminek
commented
Jul 19, 2016
•
edited
Loading
edited
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | yes |
Related tickets | #5547 |
License | MIT |
@@ -55,7 +55,7 @@ public function load(array $config, ContainerBuilder $container) | |||
->getDefinition('sylius.form.type.customer') | |||
->addArgument(new Reference('sylius.form.event_subscriber.add_user_type')) | |||
; | |||
|
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.
😢
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.
👍
c768685
to
97de80a
Compare
What's the detail of this PR, I think I don't know the main idea of this. |
The main idea of this PR is to generate services per defined users. And have configuration similar to this sylius_user:
resources:
admin:
user:
classes:
model: Sylius\Component\Core\Model\User
form:
default: Sylius\Bundle\CoreBundle\Form\Type\UserType
shop:
user:
classes:
model: Sylius\Component\Core\Model\Customer
controller: Sylius\Bundle\CoreBundle\Controller\CustomerController |
Btw. should customer be a user? |
I believe @Arminek meant:
😉 |
That makes sense :) |
242db22
to
a43572c
Compare
46189ba
to
7d3530b
Compare
@@ -46,7 +47,7 @@ function it_should_extend_user_provider() | |||
|
|||
function it_supports_sylius_user_model() | |||
{ | |||
$this->supportsClass(UserInterface::class)->shouldReturn(true); | |||
$this->supportsClass(User::class)->shouldReturn(true); |
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.
- it does not support some other model
…e entity [Behat] Separate security context & clean up [Core][User] replace unused services
fcc3450
to
63e8c65
Compare
@@ -9,7 +9,7 @@ Feature: Editing an administrator | |||
And there is an administrator "Gareth Bale" identified by an email "bale@example.com" and a password "bale11" | |||
And I am logged in as "bale@example.com" | |||
|
|||
@ui @javascript | |||
@todo |
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.
💨
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 feature is no longer supported 😉 but in near feature it will be 💃
90f7bb3
to
8a463a2
Compare
8a463a2
to
4b538a7
Compare
Really great work Arek, thanks a lot! :) |
[User] Change user bundle configuration to be able to support multipl…
[User] Change user bundle configuration to be able to support multipl…
[User] Change user bundle configuration to be able to support multipl…