DoctrineBehaviors icon indicating copy to clipboard operation
DoctrineBehaviors copied to clipboard

Update Subscribers with #[AsDoctrineListener]

Open DennisdeBest opened this issue 1 year ago • 17 comments

To remove the deprecation from implementing the EventSubscriberInterface this PR is to use the #[AsDoctrineListener] attribute instead.

To do so I set the doctrine/doctrine-bundle to ^2.7.2.

Running the cs-fixer, phpstan and rector showed a couple of errors so I updated Rector and implemented some of the changes that those tools required.

There were errors in the github workflows so I updated the versions of the actions accordingly.

If there is more to update let me know I would be happy to help.


Looking at the current PRs this seems to be a combination of

https://github.com/KnpLabs/DoctrineBehaviors/pull/739

https://github.com/KnpLabs/DoctrineBehaviors/pull/741

https://github.com/KnpLabs/DoctrineBehaviors/pull/738

https://github.com/KnpLabs/DoctrineBehaviors/pull/736

DennisdeBest avatar Oct 20 '23 10:10 DennisdeBest

I updated the tests some more and added support for Symfony 7. I dropped support for Symfony5 and PHP 8.0

This kind of takes the PR #750 into account aswell.

DennisdeBest avatar Feb 25 '24 13:02 DennisdeBest

When it will be released?

jgrygierek avatar Mar 28 '24 00:03 jgrygierek

Hello 👋

Any updates about this PR? 😀

Enz000 avatar Apr 10 '24 12:04 Enz000

Hello 👋

Any updates about this PR? 😀

Nothing so far 😕I use my fork on multiple projects waiting for it to get merged

DennisdeBest avatar Apr 10 '24 13:04 DennisdeBest

Thanks a lot for the PR! Would be great to have this released.

jzecca avatar Apr 15 '24 09:04 jzecca

I really don't understand... What is the problem with releasing this one very important feature? It is just a few minutes...

jgrygierek avatar Apr 21 '24 23:04 jgrygierek

@jgrygierek The problem is, that this library does not seem to have any active maintainers for quite some time. See #711

virtualize avatar Apr 26 '24 11:04 virtualize

@alexpozzi

Thanks for the reply.

I will take another look at it when I get back from vacation in two weeks.

DennisdeBest avatar Apr 30 '24 10:04 DennisdeBest

Any news?

jgrygierek avatar May 27 '24 12:05 jgrygierek

the package is dead?

ernestoliberio avatar May 27 '24 21:05 ernestoliberio

Hello @acrobat, Any news ?

azribilel avatar Jun 03 '24 11:06 azribilel

There are some changes with Symfony 6.1 which make it difficult to use 6.0 as the lowest version. I updated the composer.json to only allow symfony 6.1 and php 8.1.

The changes of some of the variables is the current Rector behaviour so we might aswell keep it like that.

If this gets merged the next thing that might have to be updated is the doctrine ORM from v2 to V3 but doing that here makes it a bit too much in one PR.

DennisdeBest avatar Jun 08 '24 10:06 DennisdeBest

@DennisdeBest some news about this PR ?

MICMathieu avatar Jun 10 '24 13:06 MICMathieu

Anyone alive here?

jgrygierek avatar Jul 01 '24 23:07 jgrygierek

Bump?

jgrygierek avatar Jul 29 '24 17:07 jgrygierek

@MICMathieu sorry no news so far

DennisdeBest avatar Aug 12 '24 09:08 DennisdeBest