If you wrote a command based on this you can do one of:
- Reimplement your custom command
- Inject the FixtureGenerator service manually into the constructor, or retrieve it from the container (this was previously handled by the abstract service)
- Handle writing the yaml file yourself. This can be as simple as using
file_put_contents
.
- Remove your custom command
- If your command was fairly simple then it's likely that the functionality is now offered natively through the bundle's new
generate:fixtures
command.
- If your command was fairly simple then it's likely that the functionality is now offered natively through the bundle's new
You will need to replace use statements resembling
<?php
use Trappar\AliceGeneratorBundle\Annotation as Fixture;
with
<?php
use Trappar\AliceGenerator\Annotation as Fixture;
Reference the AliceGenerator documentation - Property Metadata section for more information.
Reference the AliceGenerator documentation - Custom Object Handlers section for more information.
This never really worked in the first place, since any use of annotations would cause errors in production when those annotations could not be found. To fix, simply move this bundle from the "require-dev" section of the composer.json to the "require" section.