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

Skip to content

Deprecate Pool::getPropertyAccessor() method#6634

Merged
VincentLanglet merged 1 commit into
sonata-project:3.xfrom
franmomu:deprecate_property_path_pool
Nov 29, 2020
Merged

Deprecate Pool::getPropertyAccessor() method#6634
VincentLanglet merged 1 commit into
sonata-project:3.xfrom
franmomu:deprecate_property_path_pool

Conversation

@franmomu
Copy link
Copy Markdown
Member

@franmomu franmomu commented Nov 27, 2020

Subject

Ref: #6624

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.

I am targeting this branch, because these changes are BC.

Changelog

### Deprecated
- Deprecated `Pool::getPropertyAccessor()` method.
- Deprecated not passing and instance of `PropertyAccessor` as argument 1 to `Sonata\AdminBundle\Admin\AdminHelper` constructor.
- Deprecated not passing and instance of `PropertyAccessor` as argument 5 to `Sonata\AdminBundle\Action\SetObjectFieldValueAction` constructor.
- Deprecated not passing and instance of `PropertyAccessor` as argument 5 to `Sonata\AdminBundle\Twig\Extension\SonataAdminExtension` constructor.

@franmomu franmomu added the minor label Nov 27, 2020
Comment thread UPGRADE-3.x.md Outdated
Comment thread src/Admin/AdminHelper.php Outdated
@franmomu franmomu force-pushed the deprecate_property_path_pool branch from 5f1e06c to 87fa44e Compare November 27, 2020 20:35
@franmomu franmomu mentioned this pull request Nov 27, 2020
3 tasks
@franmomu franmomu requested a review from a team November 27, 2020 21:28
Comment thread src/Admin/AdminHelper.php Outdated
@franmomu franmomu force-pushed the deprecate_property_path_pool branch from 87fa44e to 3b567d6 Compare November 28, 2020 20:07
Comment thread src/Resources/config/core.php
@franmomu franmomu force-pushed the deprecate_property_path_pool branch from 3b567d6 to f8ede46 Compare November 28, 2020 22:21
VincentLanglet
VincentLanglet previously approved these changes Nov 28, 2020
@VincentLanglet VincentLanglet requested a review from a team November 28, 2020 22:23
Comment thread src/Action/SetObjectFieldValueAction.php Outdated
Comment thread src/Admin/AdminHelper.php Outdated
Comment thread src/Admin/AdminHelper.php Outdated
Comment thread src/Admin/AdminHelper.php Outdated
Comment thread src/Admin/AdminHelper.php Outdated
Comment thread src/Twig/Extension/SonataAdminExtension.php Outdated
Comment thread src/Twig/Extension/SonataAdminExtension.php Outdated
Comment thread src/Twig/Extension/SonataAdminExtension.php Outdated
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.
@franmomu franmomu force-pushed the deprecate_property_path_pool branch from 74c15ad to 477d5d4 Compare November 29, 2020 15:20
@VincentLanglet VincentLanglet merged commit ea9f3a4 into sonata-project:3.x Nov 29, 2020
@VincentLanglet
Copy link
Copy Markdown
Member

Thanks @franmomu

@franmomu franmomu deleted the deprecate_property_path_pool branch November 29, 2020 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants