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

-48
This file was deleted.

Console/Command/Generate.php

-2
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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;

templates/composer.json.dist

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"license": "proprietary",
66
"authors": [
77
{
8-
"email": "[email protected]",
9-
"name": "Mahesh Singh"
8+
"name": "Webkul"
109
}
1110
],
1211
"require": {},

templates/module.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
*/
1212
-->
1313
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
14-
<module name="%moduleName%" setup_version="1.0.0"/>
14+
<module name="%moduleName%"/>
1515
</config>

0 commit comments

Comments
 (0)