File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 8
8
use InfyOm \Generator \Generators \API \APIRequestGenerator ;
9
9
use InfyOm \Generator \Generators \API \APIRoutesGenerator ;
10
10
use InfyOm \Generator \Generators \API \APITestGenerator ;
11
+ use InfyOm \Generator \Generators \FactoryGenerator ;
11
12
use InfyOm \Generator \Generators \MigrationGenerator ;
12
13
use InfyOm \Generator \Generators \ModelGenerator ;
13
14
use InfyOm \Generator \Generators \RepositoryGenerator ;
@@ -126,6 +127,9 @@ public function handle()
126
127
$ apiTestGenerator ->rollback ();
127
128
}
128
129
130
+ $ factoryGenerator = new FactoryGenerator ($ this ->commandData );
131
+ $ factoryGenerator ->rollback ();
132
+
129
133
if ($ this ->commandData ->config ->getAddOn ('menu.enabled ' )) {
130
134
$ menuGenerator = new MenuGenerator ($ this ->commandData );
131
135
$ menuGenerator ->rollback ();
Original file line number Diff line number Diff line change @@ -105,4 +105,11 @@ private function generateFields()
105
105
106
106
return $ fields ;
107
107
}
108
+
109
+ public function rollback ()
110
+ {
111
+ if ($ this ->rollbackFile ($ this ->path , $ this ->fileName )) {
112
+ $ this ->commandData ->commandComment ('Factory file deleted: ' .$ this ->fileName );
113
+ }
114
+ }
108
115
}
You can’t perform that action at this time.
0 commit comments