Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 10, 2025

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Updates the requirements on zenstruck/foundry to permit the latest version.

Release notes

Sourced from zenstruck/foundry's releases.

v2.8.0

This release introduces a new attribute #[AsFoundryHook], which allows to declare Foundry hooks as Symfony services. It also permits to have "global" hooks for all kind of objects created with Foundry:

final class FoundryHook
{
    #[AsFoundryHook(Post::class)]
    public function beforeInstantiate(BeforeInstantiate $event): void
    {
        // do something before the post is instantiated:
        // $event->parameters is what will be used to instantiate the object, manipulate as required
        // $event->objectClass is the class of the object being instantiated
        // $event->factory is the factory instance which creates the object
    }
#[AsFoundryHook(Post::class)]
public function afterInstantiate(AfterInstantiate $event): void
{
    // $event->object is the instantiated Post object
    // $event->parameters contains the attributes used to instantiate the object and any extras
    // $event->factory is the factory instance which creates the object
}
#[AsFoundryHook(Post::class)]
public function afterPersist(AfterPersist $event): void
{
// this event is only called if the object was persisted
// $event->object is the persisted Post object
// $event->parameters contains the attributes used to instantiate the object and any extras
// $event->factory is the factory instance which creates the object
}
#[AsFoundryHook]
public function afterInstantiateGlobal(AfterInstantiate $event): void
{
// Omitting the class defines a "global" hook which will be called for all objects
}

}

8dc0b1f feat(2.8): introduce #[AsFoundryHook] attribute (#986) by @​nikophil bf4549c feat(2.8): dispatch events (#974) by @​nikophil 8516af1 docs: Remove array params on function alwaysForce (#1028) by @​philpichet 5f3a6b1 feat: add hooks priority (#1029) by @​nikophil

Full Change List

Changelog

Sourced from zenstruck/foundry's changelog.

v2.8.0

November 9th, 2025 - v2.7.9...v2.8.0

v2.7.9

November 7th, 2025 - v2.7.8...v2.7.9

  • 41ab3ae fix: auto-refresh with Mongo after DoctrineMongoDBBundle 5.4.3 (#1030) by @​nikophil

v2.7.8

November 5th, 2025 - v2.7.7...v2.7.8

v2.7.7

October 23rd, 2025 - v2.7.6...v2.7.7

  • 7766a85 fix: only use PersistedObjectsTracker when auto-refresh is enabled (#1013) by @​nikophil

v2.7.6

October 20th, 2025 - v2.7.5...v2.7.6

v2.7.5

October 10th, 2025 - v2.7.4...v2.7.5

  • 81eacf5 docs: add a note about using make:factory --test (#1000) by @​ttskch

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [zenstruck/foundry](https://github.com/zenstruck/foundry) to permit the latest version.
- [Release notes](https://github.com/zenstruck/foundry/releases)
- [Changelog](https://github.com/zenstruck/foundry/blob/2.x/CHANGELOG.md)
- [Commits](zenstruck/foundry@v1.37.0...v2.8.0)

---
updated-dependencies:
- dependency-name: zenstruck/foundry
  dependency-version: 2.8.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 10, 2025
@priyadi
Copy link
Member

priyadi commented Dec 7, 2025

@dependabot rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants