Skip to content
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

Deprecate Pool::getPropertyAccessor() method #6634

Merged

Conversation

franmomu
Copy link
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
UPGRADE-3.x.md Outdated Show resolved Hide resolved
src/Admin/AdminHelper.php Outdated Show resolved Hide resolved
@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
@franmomu franmomu force-pushed the deprecate_property_path_pool branch from 87fa44e to 3b567d6 Compare November 28, 2020 20:07
src/Resources/config/core.php Outdated Show resolved Hide resolved
@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
src/Action/SetObjectFieldValueAction.php Outdated Show resolved Hide resolved
src/Admin/AdminHelper.php Outdated Show resolved Hide resolved
src/Admin/AdminHelper.php Outdated Show resolved Hide resolved
src/Admin/AdminHelper.php Outdated Show resolved Hide resolved
src/Admin/AdminHelper.php Outdated Show resolved Hide resolved
src/Twig/Extension/SonataAdminExtension.php Outdated Show resolved Hide resolved
src/Twig/Extension/SonataAdminExtension.php Outdated Show resolved Hide resolved
src/Twig/Extension/SonataAdminExtension.php Outdated Show resolved Hide resolved
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
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