[make:schedule] a new command for creating recurring Symfony Schedules #1487
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds a new
make:schedule
commandcreates stateful schedulers
If
Symfony/Scheduler
is not already installed - rather than using an exit early strategy - wecomposer install symfony/scheduler
. This is the "shift" MakerBundle is making to handling missing dependencies.We check any files in
src/Message
-> if files exist -> ask the user to select a message class to use with the new schedule. The "suggested name" of the new schedule is the filename of the message w/ theMessage
suffix removed.The user also has the ability to select "Empty Message" to create a new schedule regardless if any message were found. This will create a "empty" schedule.
If no existing messages exist -> ask the user the name of the "empty" schedule we'll create
Empty Schedule:
Schedule from message: