@@ -47,15 +47,13 @@ public function handle()
4747
4848 private function loadSchema ()
4949 {
50- $ this ->info ('Load Schema ' );
50+ $ this ->info ('Loading Schema ' );
5151 $ this ->schema = new Schema ($ this ->option ('schema ' ));
52- $ this ->info ('Schema loaded ' );
53- $ this ->line ('' );
5452 }
5553
5654 private function loadNaming ()
5755 {
58- $ this ->info ('Load Naming Classes ' );
56+ $ this ->info ('Loading Naming Classes ' );
5957
6058 $ namingClasses = config ('webfactor.generators.naming ' );
6159 $ count = count ($ namingClasses );
@@ -68,7 +66,6 @@ private function loadNaming()
6866 $ this ->naming [$ key ] = $ namingObject ;
6967 }
7068
71- $ this ->info ('Naming Classes loaded ' );
7269 $ this ->line ('' );
7370 }
7471
@@ -77,15 +74,14 @@ private function loadServices()
7774 $ services = $ this ->getServicesToBeExecuted ();
7875 $ progressBar = $ this ->output ->createProgressBar (count ($ services ));
7976
80- foreach ($ services as $ serviceClass ) {
81- $ progressBar -> advance ( );
82- $ this ->info ( ' Call: ' . $ serviceClass );
77+ foreach ($ services as $ k => $ serviceClass ) {
78+ $ serviceInstance = new $ serviceClass ( $ this );
79+ $ this ->executeService ( $ serviceInstance );
8380
84- $ this ->executeService (new $ serviceClass ($ this ));
81+ $ progressBar ->advance ();
82+ $ this ->info (' ' .$ serviceInstance ->getConsoleOutput ());
8583 }
8684
87- $ progressBar ->finish ();
88- $ this ->info (' Service Classes loaded ' );
8985 $ this ->line ('' );
9086 }
9187
0 commit comments