Skip to content

Commit da33720

Browse files
authored
Merge pull request #43 from SauravKumar-Webkul/master
Fixed Area Code Issue
2 parents 9aa062e + ae097b3 commit da33720

File tree

12 files changed

+11
-62
lines changed

12 files changed

+11
-62
lines changed

.vscode/launch.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

Console/Command/Generate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ public function __construct(
5252
$this->validators = $validators;
5353
$this->optionsPool = \Magento\Framework\App\ObjectManager::getInstance()
5454
->get(\Webkul\CodeGenerator\Model\OptionsPool::class);
55-
$state = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\State::class);
56-
$state->setAreaCode("adminhtml");
5755
parent::__construct();
5856
}
5957

Model/Generate/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function createApiClass($dir, $data, $columns)
144144
$column['type']
145145
)]),
146146
new Tag\ReturnTag([
147-
'datatype' => $nameSpace.'\\'.$data['name'].'Interface',
147+
'datatype' => '\\'.$nameSpace.'\\'.$data['name'].'Interface',
148148
]),
149149
],
150150
]),
@@ -299,7 +299,7 @@ public function createModelClass($dir, $data, $columns)
299299
'tags' => [
300300
new Tag\ParamTag($camelCase, [$this->helper->getReturnType($column['type'])]),
301301
new Tag\ReturnTag([
302-
'datatype' => $nameSpace.'\\'.$data['name'].'Interface',
302+
'datatype' => '\\'.$nameSpace.'\\'.$data['name'].'Interface',
303303
]),
304304
],
305305
]),

Model/Generate/NewModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model\Generate;

Model/Generate/NewModule/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model\Generate\NewModule;

Model/Generate/Shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model\Generate;

Model/Generate/Shipping/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model\Generate\Shipping;

Model/Generate/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model\Generate;

Model/Generate/View/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88
namespace Webkul\CodeGenerator\Model\Generate\View;
99

Model/XmlGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Webkul Software.
44
*
55
* @package Webkul_CodeGenerator
6-
* @author Mahesh Singh
6+
* @author Webkul
77
*/
88

99
namespace Webkul\CodeGenerator\Model;

0 commit comments

Comments
 (0)