Skip to content

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Feb 26, 2025

Follows doctrine-extensions/DoctrineExtensions#2914 and the 3.19 release
Replaces #499
Fixes #498
Probably implicitly fixes some other issues as well

@mbabker mbabker force-pushed the actor-provider branch 2 times, most recently from 0a42b16 to df53613 Compare February 26, 2025 15:04
@stof stof merged commit 9abab41 into stof:main Feb 28, 2025
9 of 10 checks passed
@stof
Copy link
Owner

stof commented Feb 28, 2025

Thanks @mbabker

@SherinBloemendaal
Copy link

@stof, just wondering if there's any ETA on the next release? Thanks so far :)

@stof
Copy link
Owner

stof commented Apr 11, 2025

I still have 1 change I want to do to be compatible with the new way of doing things (regarding the way the locale is handled). My plan is to do it this weekend (hopefully) and then do a release.

Comment on lines +19 to +21
<call method="setActorProvider">
<argument type="service" id="stof_doctrine_extensions.tool.actor_provider" />
</call>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling that adding this, in conjunction with the LoggableListener::getUsername implementation, creates a BC break: even if one calls LoggableListener::setUsername manually, the fact that the actor is always injected will make the actor takes precedence over the value injected by the user in every scenario.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of our projects was affected by it. It took a while to debug, but fortunately, the change was made quickly by creating a new ActorProvider and set the User there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BlameableListener memory leak with FrankenPHP and unauthenticated requests
5 participants