File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ abstract class ServiceAbstract
1414
1515 protected $ filesystem ;
1616
17- public function __construct (CommandAbstract $ command )
17+ public function __construct (CommandAbstract $ command, ? NamingAbstract $ naming = null )
1818 {
1919 $ this ->command = $ command ;
2020 $ this ->filesystem = new Filesystem ();
2121
22- if ($ this ->key ) {
22+ $ this ->naming = $ naming ;
23+
24+ if (is_null ($ naming ) && $ this ->key ) {
2325 $ this ->naming = $ this ->command ->naming [$ this ->key ];
2426 }
2527 }
Original file line number Diff line number Diff line change 22
33namespace Webfactor \Laravel \Generators \Services ;
44
5- use Illuminate \Filesystem \Filesystem ;
6- use Webfactor \Laravel \Generators \Commands \MakeEntity ;
75use Webfactor \Laravel \Generators \Contracts \ServiceAbstract ;
86use Webfactor \Laravel \Generators \Contracts \ServiceInterface ;
97
You can’t perform that action at this time.
0 commit comments