Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2015 at 10:56 UTC
Updated:
9 Mar 2016 at 14:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
legovaerWhile working on #2418527: Replace variable_set() with config I discovered this issue. This is already a first patch for fixing this.
Comment #4
legovaerRe-rolled patch and ignored the .test files.
Comment #6
joshi.rohit100should use DI
should use DI
Comment #7
legovaerJoshi, thanks for that useful comment. With that comment, I know understand how D8 works with DI!
Here's a new patch and an interdiff. Just one note on the interdiff: I had to update the initial patch (from #4) because there were some conflicts with the changes we've applied in #2418527: Replace variable_set() with config.
Comment #9
joshi.rohit100object / instance
Comment #10
legovaerI was looking into that code again in order to update the comment when I noticed that this class is extending the
ConfigFormBaseclass which has a constructor itself. Therefore I had to update our code to make sure that our form object is calling the parent constructor as well. There's also a minor code change in order to have the config factory container working.Because the parent class has a constructor itself, we can just add a
{@inheritdoc}.Comment #11
joshi.rohit100It is good practice to call the parent constructor but in this case you don't need this. See ConfigFormBaseTrait
Comment #12
joekersRe-rolled patch and removed call to parent constructor as mentioned in #11.
Comment #13
joekersComment #14
pfrenssenLast patch is corrupt:
Comment #15
joekersThis is because of the commits in other issues since I created it - patch re-rolled :)
Comment #16
joekersForgot to remove config.factory from create() which caused a fatal error in the tests.
Comment #17
joshi.rohit100Now not required
should be like 'Creates instance/object of ***'
shouldn't be this->t
Comment #18
joekersPatch updated - thanks for the feedback joshi.rohit100.
Comment #19
joekersComment #20
joshi.rohit100looks fine to me now. Please try to upload the interdiff as well as it makes the review easy :)
Comment #21
pfrenssenNice work, thanks a lot gentlemen, and a happy new year!
Comment #29
jonathan1055 commentedIgnore the failed patches above. They were queued but not run until the 8.x committed codebase passed all tests. That happened with my commit a few minutes ago, and then the untested patches have suddenly come to life and been run. This issue is already fixed and closed.