Compare commits

..

No commits in common. "master" and "master-upgrade-to-latests-base" have entirely different histories.

7 changed files with 15 additions and 22 deletions

View File

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
$header = <<<'EOF' $header = <<<'EOF'
Copyright © __Vendor__. All rights reserved. Copyright © __Vender__. All rights reserved.
See LICENSE file for license details. See LICENSE file for license details.
EOF; EOF;

View File

@ -1,7 +1,7 @@
# oxid-esales/graphql-module-skeleton # oxid-esales/graphql-module-skeleton
[![PHP Version](https://img.shields.io/packagist/php-v/oxid-esales/graphql-module-skeleton.svg?style=for-the-badge)](https://github.com/oxid-esales/graphql-module-skeleton) [![Stable Version](https://img.shields.io/packagist/v/oxid-esales/graphql-module-skeleton.svg?style=for-the-badge&label=latest)](https://packagist.org/packages/oxid-esales/graphql-module-skeleton) [![Build Status](https://img.shields.io/travis/com/OXID-eSales/graphql-module-skeleton/master.svg?style=for-the-badge&logo=travis)](https://travis-ci.com/OXID-eSales/graphql-module-skeleton) [![PHP Version](https://img.shields.io/packagist/php-v/oxid-esales/graphql-module-skeleton.svg?style=for-the-badge)](https://github.com/oxid-esales/graphql-module-skeleton) [![Stable Version](https://img.shields.io/packagist/v/oxid-esales/graphql-module-skeleton.svg?style=for-the-badge&label=latest)](https://packagist.org/packages/oxid-esales/graphql-module-skeleton)
## What is this? ## What is this?
@ -19,14 +19,7 @@ This skeleton will set you up with a
$ composer create-project oxid-esales/graphql-module-skeleton $ composer create-project oxid-esales/graphql-module-skeleton
``` ```
This provides you with a basic GraphQL OXID module. To install this freshly created module into your OXID eShop you can: This provides you with a basic GraphQL OXID module, that you may install into the shop via `composer`.
```bash
$ composer config repositories.graphql path path-to-module/that-you-just-created
$ composer require my-vendor/my-package
```
Make sure that `my-vendor/my-package` matches the package name in the package `composer.json`.
## License ## License

View File

@ -10,15 +10,15 @@
} }
}, },
"require": { "require": {
"php": "^7.1|^8", "php": "^7.1",
"oxid-esales/graphql-base": "^8.0" "oxid-esales/graphql-base": "^5.1.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^7.5.20|^8.5|^9", "phpunit/phpunit": "^7.5.20|^8.5|^9",
"friendsofphp/php-cs-fixer": "^2.18.2", "friendsofphp/php-cs-fixer": "^2.18.2",
"php-parallel-lint/php-parallel-lint": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.1",
"phpstan/phpstan": "^0.12.26", "phpstan/phpstan": "^0.12.26",
"oxid-esales/oxideshop-ce": "^7.0", "oxid-esales/oxideshop-ce": "^6.5",
"oxid-esales/oxideshop-unified-namespace-generator": "^2.0" "oxid-esales/oxideshop-unified-namespace-generator": "^2.0"
}, },
"autoload": { "autoload": {

View File

@ -13,12 +13,12 @@ $sMetadataVersion = '2.0';
* Module information * Module information
*/ */
$aModule = [ $aModule = [
'id' => 'graphql-module-skeleton', 'id' => '__PackageFull__',
'title' => 'GraphQL module skeleton', 'title' => 'GraphQL __Package__',
'description' => '', 'description' => '',
'thumbnail' => 'out/pictures/logo.png', 'thumbnail' => 'out/pictures/logo.png',
'version' => '0.0.1', 'version' => '0.0.1',
'author' => 'OxidEsales', 'author' => '__Vendor__',
'url' => '', 'url' => '',
'email' => '', 'email' => '',
'extend' => [ 'extend' => [

View File

@ -5,7 +5,7 @@
"source": { "source": {
"url": "./", "url": "./",
"type": "git", "type": "git",
"reference": "master" "reference": "master-upgrade-to-latests-base"
} }
} }
} }

View File

@ -4,11 +4,11 @@ services:
public: false public: false
autowire: true autowire: true
OxidEsales\GraphQL\Skeleton\: __Vendor__\GraphQL\__Package__\:
resource: 'src/*' resource: 'src/*'
exclude: 'src/**/{DataType,Exception,Infrastructure}' exclude: 'src/**/DataType'
public: true public: true
OxidEsales\GraphQL\Skeleton\Shared\Service\NamespaceMapper: __Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper:
class: OxidEsales\GraphQL\Skeleton\Shared\Service\NamespaceMapper class: __Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper
tags: ['graphql_namespace_mapper'] tags: ['graphql_namespace_mapper']

View File

@ -24,7 +24,7 @@ final class CategoryRepository
$category = oxNew(CategoryEshopModel::class); $category = oxNew(CategoryEshopModel::class);
if (!$category->load($id)) { if (!$category->load($id)) {
throw new NotFound($id); throw new NotFound();
} }
return new CategoryDataType( return new CategoryDataType(