Skip to content

Commit 697e811

Browse files
committed
Remove outdated v1 to v2 upgrade guide from README.md
1 parent ab37322 commit 697e811

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

README.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,6 @@ It can be useful for testing purposes or for seeding a database with initial dat
3232
resource: '../tests/Fixture/'
3333
```
3434
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.
61-
6235
## Usage
6336
6437
### Writing Fixtures

0 commit comments

Comments
 (0)