Compare commits
7 Commits
master-upg
...
v2.0.2
Author | SHA1 | Date | |
---|---|---|---|
a54568abad | |||
7f5784d710 | |||
5c5b74fcdf | |||
570964309b | |||
8de9123000 | |||
6851ddf757 | |||
7e29580d2e |
@ -3,7 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
$header = <<<'EOF'
|
||||
Copyright © __Vender__. All rights reserved.
|
||||
Copyright © __Vendor__. All rights reserved.
|
||||
See LICENSE file for license details.
|
||||
EOF;
|
||||
|
||||
|
11
README.md
11
README.md
@ -1,7 +1,7 @@
|
||||
# oxid-esales/graphql-module-skeleton
|
||||
|
||||
|
||||
[](https://travis-ci.com/OXID-eSales/graphql-module-skeleton) [](https://github.com/oxid-esales/graphql-module-skeleton) [](https://packagist.org/packages/oxid-esales/graphql-module-skeleton)
|
||||
[](https://github.com/oxid-esales/graphql-module-skeleton) [](https://packagist.org/packages/oxid-esales/graphql-module-skeleton)
|
||||
|
||||
## What is this?
|
||||
|
||||
@ -19,7 +19,14 @@ This skeleton will set you up with a
|
||||
$ composer create-project oxid-esales/graphql-module-skeleton
|
||||
```
|
||||
|
||||
This provides you with a basic GraphQL OXID module, that you may install into the shop via `composer`.
|
||||
This provides you with a basic GraphQL OXID module. To install this freshly created module into your OXID eShop you can:
|
||||
|
||||
```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
|
||||
|
||||
|
@ -10,15 +10,15 @@
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1",
|
||||
"oxid-esales/graphql-base": "^5.1.1"
|
||||
"php": "^7.1|^8",
|
||||
"oxid-esales/graphql-base": "^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5.20|^8.5|^9",
|
||||
"friendsofphp/php-cs-fixer": "^2.18.2",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.1",
|
||||
"phpstan/phpstan": "^0.12.26",
|
||||
"oxid-esales/oxideshop-ce": "^6.5",
|
||||
"oxid-esales/oxideshop-ce": "^7.0",
|
||||
"oxid-esales/oxideshop-unified-namespace-generator": "^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"source": {
|
||||
"url": "./",
|
||||
"type": "git",
|
||||
"reference": "master-upgrade-to-latests-base"
|
||||
"reference": "master"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ services:
|
||||
|
||||
__Vendor__\GraphQL\__Package__\:
|
||||
resource: 'src/*'
|
||||
exclude: 'src/**/DataType'
|
||||
exclude: 'src/**/{DataType,Exception,Infrastructure}'
|
||||
public: true
|
||||
|
||||
__Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper:
|
||||
|
@ -24,7 +24,7 @@ final class CategoryRepository
|
||||
$category = oxNew(CategoryEshopModel::class);
|
||||
|
||||
if (!$category->load($id)) {
|
||||
throw new NotFound();
|
||||
throw new NotFound($id);
|
||||
}
|
||||
|
||||
return new CategoryDataType(
|
||||
|
Reference in New Issue
Block a user