File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 7070 "symfony/serializer" : " ^6.4|^7.1" ,
7171 "symfony/stopwatch" : " ^6.4|^7.1" ,
7272 "symfony/validator" : " ^6.4|^7.1" ,
73- "symfony/yaml" : " ^6.4|^7.1"
73+ "symfony/yaml" : " ^6.4|^7.1" ,
74+ "symfony/service-contracts" : " >=1.0.0"
7475 },
7576 "require-dev" : {
7677 "friendsofphp/php-cs-fixer" : " *" ,
Original file line number Diff line number Diff line change 1414namespace CleverAge \ProcessBundle \Model ;
1515
1616use Symfony \Component \OptionsResolver \OptionsResolver ;
17+ use Symfony \Contracts \Service \ResetInterface ;
1718
1819/**
1920 * Allow the task to configure it's options, set default basic options for errors handling.
2021 */
21- abstract class AbstractConfigurableTask implements InitializableTaskInterface
22+ abstract class AbstractConfigurableTask implements InitializableTaskInterface, ResetInterface
2223{
2324 protected ?array $ options = null ;
2425
@@ -30,6 +31,11 @@ public function initialize(ProcessState $state): void
3031 $ this ->getOptions ($ state );
3132 }
3233
34+ public function reset (): void
35+ {
36+ $ this ->options = null ;
37+ }
38+
3339 protected function getOptions (ProcessState $ state ): ?array
3440 {
3541 if (null === $ this ->options ) {
You can’t perform that action at this time.
0 commit comments