File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 70
70
"symfony/serializer" : " ^6.4|^7.1" ,
71
71
"symfony/stopwatch" : " ^6.4|^7.1" ,
72
72
"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"
74
75
},
75
76
"require-dev" : {
76
77
"friendsofphp/php-cs-fixer" : " *" ,
Original file line number Diff line number Diff line change 14
14
namespace CleverAge \ProcessBundle \Model ;
15
15
16
16
use Symfony \Component \OptionsResolver \OptionsResolver ;
17
+ use Symfony \Contracts \Service \ResetInterface ;
17
18
18
19
/**
19
20
* Allow the task to configure it's options, set default basic options for errors handling.
20
21
*/
21
- abstract class AbstractConfigurableTask implements InitializableTaskInterface
22
+ abstract class AbstractConfigurableTask implements InitializableTaskInterface, ResetInterface
22
23
{
23
24
protected ?array $ options = null ;
24
25
@@ -30,6 +31,11 @@ public function initialize(ProcessState $state): void
30
31
$ this ->getOptions ($ state );
31
32
}
32
33
34
+ public function reset (): void
35
+ {
36
+ $ this ->options = null ;
37
+ }
38
+
33
39
protected function getOptions (ProcessState $ state ): ?array
34
40
{
35
41
if (null === $ this ->options ) {
You can’t perform that action at this time.
0 commit comments