File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ public function createRepositoryInterface(string $className)
9292 $ repositoryInterfacePath ,
9393 __DIR__ . "/stubs/repository-interface.stub "
9494 );
95- $ this ->info ("Repository created successfully " );
9695 $ this ->line ("<info>Created $ className repository interface:</info> " . $ repositoryInterfaceName );
9796
9897 return $ repositoryInterfaceNamespace . "\\" . $ className ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function createService(string $className)
5656 // check file exist
5757 $ filePath = $ this ->getServicePath ($ className );
5858 if (file_exists ($ filePath )) {
59- $ this ->error ("file $ className service already exist: { $ serviceName } " );
59+ $ this ->error ("file $ className service already exist " );
6060 return ;
6161 }
6262
@@ -84,8 +84,7 @@ public function createService(string $className)
8484 */
8585 public function createServiceInterface (string $ className )
8686 {
87- $ nameOfService = $ this ->getServiceName ($ className );
88- $ serviceName = $ nameOfService . config ("easy-repository.service_interface_suffix " );
87+ $ serviceName = $ className . config ("easy-repository.service_interface_suffix " );
8988
9089 $ namespace = $ this ->getNameSpace ($ className );
9190 $ stubProperties = [
@@ -95,7 +94,7 @@ public function createServiceInterface(string $className)
9594 // check folder exist
9695 $ interfacePath = $ this ->getServiceInterfacePath ($ className ,$ serviceName );
9796 if (file_exists ($ interfacePath )) {
98- $ this ->error ("file $ className service interface already exist: { $ serviceName } " );
97+ $ this ->error ("file $ className service interface already exist " );
9998 return ;
10099 }
101100 // create file
@@ -104,7 +103,6 @@ public function createServiceInterface(string $className)
104103 $ interfacePath ,
105104 __DIR__ . "/stubs/service-interface.stub "
106105 );
107- $ this ->info ("Service generated successfully " );
108106 $ this ->line ("<info>Created $ className service interface:</info> {$ serviceName }" );
109107 }
110108
You can’t perform that action at this time.
0 commit comments