Skip to content

Commit

Permalink
Merge pull request #43 from SauravKumar-Webkul/master
Browse files Browse the repository at this point in the history
Fixed Area Code Issue
  • Loading branch information
webkul authored Feb 13, 2024
2 parents 9aa062e + ae097b3 commit da33720
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 62 deletions.
48 changes: 0 additions & 48 deletions .vscode/launch.json

This file was deleted.

2 changes: 0 additions & 2 deletions Console/Command/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public function __construct(
$this->validators = $validators;
$this->optionsPool = \Magento\Framework\App\ObjectManager::getInstance()
->get(\Webkul\CodeGenerator\Model\OptionsPool::class);
$state = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\App\State::class);
$state->setAreaCode("adminhtml");
parent::__construct();
}

Expand Down
4 changes: 2 additions & 2 deletions Model/Generate/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function createApiClass($dir, $data, $columns)
$column['type']
)]),
new Tag\ReturnTag([
'datatype' => $nameSpace.'\\'.$data['name'].'Interface',
'datatype' => '\\'.$nameSpace.'\\'.$data['name'].'Interface',
]),
],
]),
Expand Down Expand Up @@ -299,7 +299,7 @@ public function createModelClass($dir, $data, $columns)
'tags' => [
new Tag\ParamTag($camelCase, [$this->helper->getReturnType($column['type'])]),
new Tag\ReturnTag([
'datatype' => $nameSpace.'\\'.$data['name'].'Interface',
'datatype' => '\\'.$nameSpace.'\\'.$data['name'].'Interface',
]),
],
]),
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/NewModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model\Generate;
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/NewModule/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model\Generate\NewModule;
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model\Generate;
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/Shipping/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model\Generate\Shipping;
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model\Generate;
Expand Down
2 changes: 1 addition & 1 deletion Model/Generate/View/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/
namespace Webkul\CodeGenerator\Model\Generate\View;

Expand Down
2 changes: 1 addition & 1 deletion Model/XmlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Webkul Software.
*
* @package Webkul_CodeGenerator
* @author Mahesh Singh
* @author Webkul
*/

namespace Webkul\CodeGenerator\Model;
Expand Down
3 changes: 1 addition & 2 deletions templates/composer.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"license": "proprietary",
"authors": [
{
"email": "[email protected]",
"name": "Mahesh Singh"
"name": "Webkul"
}
],
"require": {},
Expand Down
2 changes: 1 addition & 1 deletion templates/module.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="%moduleName%" setup_version="1.0.0"/>
<module name="%moduleName%"/>
</config>

0 comments on commit da33720

Please sign in to comment.