-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Property access reuse #3488
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
Property access reuse #3488
Conversation
@@ -945,7 +945,7 @@ protected function buildForm() | ||
if ($this->isChild() && $this->getParentAssociationMapping()) { | ||
$parent = $this->getParent()->getObject($this->request->get($this->getParent()->getIdParameter())); | ||
|
||
$propertyAccessor = PropertyAccess::createPropertyAccessor(); | ||
$propertyAccessor = $this->getConfigurationPool()->getContainer()->get('property_access'); |
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.
We can replace it with setter, but who should call this setter?
9c08fa9
to
66a0787
Compare
1f330c0
to
de11ed6
Compare
de11ed6
to
759becc
Compare
Looks like tests are finally pass. Please review. |
@rande @OskarStark @soullivaneuh can anybody says anything about this PR? |
Looks okay to me, but I am not that deep in the caching stuff. Think @rande should have a final review. |
Thank you @core23 |
So does anything block this? |
@@ -23,7 +25,7 @@ class Pool | ||
/** | ||
* @var ContainerInterface|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.
php doc wrong, if not null
@Koc after my comments i will merge this |
73e457b
to
710e059
Compare
@OskarStark PR rebased and I've reflected last changes, introduced in #3553. CS also have been fixed. Travis is green. |
710e059
to
9d48a4a
Compare
9d48a4a
to
33d9692
Compare
PropertyAccesor was added to Pool in order to reuse it for performance reasons in sonata-project#3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
PropertyAccesor was added to Pool in order to reuse it for performance reasons in sonata-project#3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
PropertyAccesor was added to Pool in order to reuse it for performance reasons in sonata-project#3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
PropertyAccesor was added to Pool in order to reuse it for performance reasons in sonata-project#3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
PropertyAccesor was added to Pool in order to reuse it for performance reasons in sonata-project#3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
PropertyAccesor was added to Pool in order to reuse it for performance reasons in #3488 In symfony/symfony#16838 cache was added to the component, so there is no need to reuse it thought the Pool service and it can be injected into the services.
Reuse existing property access instance for performance improvement.
Reasons: