You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-27Lines changed: 0 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,33 +32,6 @@ It can be useful for testing purposes or for seeding a database with initial dat
32
32
resource: '../tests/Fixture/'
33
33
```
34
34
35
-
### Upgrading From an Earlier Version
36
-
37
-
Fixtures are now considered actual services and are loaded through Dependency Injection (DI).
38
-
To align with this approach,
39
-
you’ll need to update your Fixture classes by moving service dependencies from the `create` method to the constructor.
40
-
If your Fixture relies on other Fixtures, implement the `HasDependencies` interface.
41
-
42
-
Here are the key changes:
43
-
44
-
1. **Fixture Interface Update**
45
-
The old fixture interface `Neusta\Pimcore\FixtureBundle\Fixture` has been replaced with `Neusta\Pimcore\FixtureBundle\Fixture\Fixture`.
46
-
You can also extend from `Neusta\Pimcore\FixtureBundle\Fixture\AbstractFixture` to implement your Fixtures.
47
-
48
-
2. **Fixtures as Services**
49
-
Fixtures must be made available in the Dependency Injection container to be discovered.
50
-
To do this, tag them with `neusta_pimcore_fixture.fixture`, or use autoconfiguration for automatic tagging.
51
-
52
-
3. **Change of the `create` Method**
53
-
The signature of the `create` method has been modified.
54
-
It no longer takes any arguments, meaning all dependencies must be specified via `HasDependencies`.
55
-
56
-
4. **Specifying Inter-Fixture Dependencies**
57
-
If your Fixture depends on others, use the `HasDependencies` interface to specify these dependencies.
58
-
Additional guidance is available in the section "[Referencing Fixtures and Depending on Other Fixtures](#referencing-fixtures-and-depending-on-other-fixtures)".
59
-
60
-
Make sure to update your Fixture classes according to these changes to ensure proper functionality and compatibility with this Bundle.
0 commit comments