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

Bump doctrine/doctrine-fixtures-bundle from 3.7.1 to 4.0.0 #1360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 11, 2025

Bumps doctrine/doctrine-fixtures-bundle from 3.7.1 to 4.0.0.

Release notes

Sourced from doctrine/doctrine-fixtures-bundle's releases.

4.0.0

Release Notes for 4.0.0

Backwards incompatible release (major)

4.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 11
  • Total contributors: 3

Breaking changes

Dependencies

Static Analysis

Internal

Upgrade guide

Sourced from doctrine/doctrine-fixtures-bundle's upgrade guide.

UPGRADE to 4.0

Type declarations

Type declarations have been added everywhere. Types extending or implementing types from this bundle need to be updated to match the new signatures.

Final classes

Some classes have been marked as final because they are not supposed to be extended. Consider using composition instead of inheritance.

Mandatory ManagerRegistry argument

It is now mandatory to pass a ManagerRegistry instance to the constructor of Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.

UPGRADE to 3.0

  • The automatic loading of fixtures in a directory (e.g. AppBundle\DataFixtures\ORM) was removed. Instead, register your fixture classes as services and tag them with doctrine.fixture.orm, like this:
# src/AppBundle/Resources/config/dataFixture.yml
services:
  _defaults:
    tags: ['doctrine.fixture.orm']
    autowire: true # if you need dependency injection, see next bullet point
AppBundle\DataFixtures\ORM:
resource: '../../DataFixtures/ORM/*'

This will happen automatically if you're using the Symfony 3.3 or higher default service configuration and your fixture classes extend the normal Doctrine\Bundle\FixturesBundle\Fixture class, or implement the new Doctrine\Bundle\FixturesBundle\ORMFixtureInterface.

  • The base Fixture class no longer implements ContainerAwareInterface and so no longer have a $this->container property. You can manually implement this interface. Or, a better idea is to update your fixtures to use dependency injection:
class MyFixture extends Fixture
{
</tr></table> 

... (truncated)

Commits
  • 9018531 Merge pull request #484 from doctrine/3.7.x-merge-up-into-4.0.x_sAXZ3QlL
  • ebfb3a5 Merge pull request #473 from greg0ire/reduce-baseline
  • 920e483 Merge pull request #483 from greg0ire/internal
  • aa28cd3 Add missing type declarations and phpdoc
  • ab66f79 Tag dependency injection classes as internal
  • b2b9bfa Merge pull request #480 from greg0ire/finalize
  • be1bc35 Merge pull request #481 from doctrine/3.7.x
  • 8fb5791 Merge pull request #478 from greg0ire/phpunit-11
  • 105ff1d Upgrade to PHPUnit 11
  • 4530215 Make final classes that can be
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update PHP code labels Jan 11, 2025
@dependabot dependabot bot force-pushed the dependabot/composer/doctrine/doctrine-fixtures-bundle-4.0.0 branch 2 times, most recently from f84598b to e823d24 Compare January 14, 2025 15:26
@dependabot dependabot bot force-pushed the dependabot/composer/doctrine/doctrine-fixtures-bundle-4.0.0 branch 2 times, most recently from 5357b3b to 3883f1c Compare January 27, 2025 09:06
Bumps [doctrine/doctrine-fixtures-bundle](https://github.com/doctrine/DoctrineFixturesBundle) from 3.7.1 to 4.0.0.
- [Release notes](https://github.com/doctrine/DoctrineFixturesBundle/releases)
- [Upgrade guide](https://github.com/doctrine/DoctrineFixturesBundle/blob/4.0.x/UPGRADE.md)
- [Commits](doctrine/DoctrineFixturesBundle@3.7.1...4.0.0)

---
updated-dependencies:
- dependency-name: doctrine/doctrine-fixtures-bundle
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/composer/doctrine/doctrine-fixtures-bundle-4.0.0 branch from 3883f1c to f9574b5 Compare January 31, 2025 12:22
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.

0 participants