Skip to content

Commit f53b238

Browse files
committed
updated files
0 parents  commit f53b238

File tree

6 files changed

+148
-0
lines changed

6 files changed

+148
-0
lines changed

Controller/GraphQl/View.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
4+
namespace Lof\ProductTagsGraphQl\Controller\GraphQl;
5+
6+
class View extends \Magento\Framework\App\Action\Action
7+
{
8+
9+
protected $resultPageFactory;
10+
11+
/**
12+
* Constructor
13+
*
14+
* @param \Magento\Framework\App\Action\Context $context
15+
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
16+
*/
17+
public function __construct(
18+
\Magento\Framework\App\Action\Context $context,
19+
\Magento\Framework\View\Result\PageFactory $resultPageFactory
20+
) {
21+
$this->resultPageFactory = $resultPageFactory;
22+
parent::__construct($context);
23+
}
24+
25+
/**
26+
* Execute view action
27+
*
28+
* @return \Magento\Framework\Controller\ResultInterface
29+
*/
30+
public function execute()
31+
{
32+
echo "Ha hello Magento";
33+
return $this->resultPageFactory->create();
34+
}
35+
}

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Mage2 Module Lof ProductTagsGraphQl
2+
3+
``lof/module-producttagsgraphql``
4+
5+
- [Main Functionalities](#markdown-header-main-functionalities)
6+
- [Installation](#markdown-header-installation)
7+
- [Configuration](#markdown-header-configuration)
8+
- [Specifications](#markdown-header-specifications)
9+
- [Attributes](#markdown-header-attributes)
10+
11+
12+
## Main Functionalities
13+
14+
15+
## Installation
16+
\* = in production please use the `--keep-generated` option
17+
18+
### Type 1: Zip file
19+
20+
- Unzip the zip file in `app/code/Lof`
21+
- Enable the module by running `php bin/magento module:enable Lof_ProductTagsGraphQl`
22+
- Apply database updates by running `php bin/magento setup:upgrade`\*
23+
- Flush the cache by running `php bin/magento cache:flush`
24+
25+
### Type 2: Composer
26+
27+
- Make the module available in a composer repository for example:
28+
- private repository `repo.magento.com`
29+
- public repository `packagist.org`
30+
- public github repository as vcs
31+
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
32+
- Install the module composer by running `composer require lof/module-producttagsgraphql`
33+
- enable the module by running `php bin/magento module:enable Lof_ProductTagsGraphQl`
34+
- apply database updates by running `php bin/magento setup:upgrade`\*
35+
- Flush the cache by running `php bin/magento cache:flush`
36+
37+
38+
## Configuration
39+
40+
41+
42+
43+
## Specifications
44+
45+
46+
47+
48+
## Attributes

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "lof/module-producttagsgraphql",
3+
"description": "N/A",
4+
"type": "magento2-module",
5+
"license": "MIT",
6+
"minimum-stability": "dev",
7+
"prefer-stable": true,
8+
"authors": [
9+
{
10+
"name": "Landofcoder",
11+
"email": "landofcoder@gmail.com",
12+
"homepage": "https://landofcoder.com",
13+
"role": "Magento 2 Extension Provider"
14+
}
15+
],
16+
"require": {
17+
"landofcoder/module-all" : "1.*"
18+
},
19+
"autoload": {
20+
"files": [
21+
"registration.php"
22+
],
23+
"psr-4": {
24+
"Lof\\ProductTagsGraphQl\\": ""
25+
}
26+
}
27+
}

etc/frontend/routes.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" ?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
3+
<router id="standard">
4+
<route frontName="lof_producttagsgraphql" id="lof_producttagsgraphql">
5+
<module name="Lof_ProductTagsGraphQl"/>
6+
</route>
7+
</router>
8+
</config>

etc/module.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" ?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3+
<module name="Lof_ProductTagsGraphQl" setup_version="1.0.0"/>
4+
</config>

registration.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* http://landofcoder.com/license
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this extension to newer
14+
* version in the future.
15+
*
16+
* @category Landofcoder
17+
* @package Lof_ProductTagsGraphQl
18+
* @copyright Copyright (c) 2019 Landofcoder (http://www.landofcoder.com/)
19+
* @license http://www.landofcoder.com/LICENSE-1.0.html
20+
*/
21+
\Magento\Framework\Component\ComponentRegistrar::register(
22+
\Magento\Framework\Component\ComponentRegistrar::MODULE,
23+
'Lof_ProductTagsGraphQl',
24+
__DIR__
25+
);
26+
?>

0 commit comments

Comments
 (0)