Compare commits
No commits in common. "master" and "master-upgrade-to-latests-base" have entirely different histories.
master
...
master-upg
@ -3,7 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
$header = <<<'EOF'
|
||||
Copyright © __Vendor__. All rights reserved.
|
||||
Copyright © __Vender__. 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
|
||||
|
||||
|
||||
[![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?
|
||||
|
||||
@ -19,14 +19,7 @@ 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. 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`.
|
||||
This provides you with a basic GraphQL OXID module, that you may install into the shop via `composer`.
|
||||
|
||||
## License
|
||||
|
||||
|
@ -10,15 +10,15 @@
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1|^8",
|
||||
"oxid-esales/graphql-base": "^8.0"
|
||||
"php": "^7.1",
|
||||
"oxid-esales/graphql-base": "^5.1.1"
|
||||
},
|
||||
"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": "^7.0",
|
||||
"oxid-esales/oxideshop-ce": "^6.5",
|
||||
"oxid-esales/oxideshop-unified-namespace-generator": "^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -13,12 +13,12 @@ $sMetadataVersion = '2.0';
|
||||
* Module information
|
||||
*/
|
||||
$aModule = [
|
||||
'id' => 'graphql-module-skeleton',
|
||||
'title' => 'GraphQL module skeleton',
|
||||
'id' => '__PackageFull__',
|
||||
'title' => 'GraphQL __Package__',
|
||||
'description' => '',
|
||||
'thumbnail' => 'out/pictures/logo.png',
|
||||
'version' => '0.0.1',
|
||||
'author' => 'OxidEsales',
|
||||
'author' => '__Vendor__',
|
||||
'url' => '',
|
||||
'email' => '',
|
||||
'extend' => [
|
||||
|
@ -5,7 +5,7 @@
|
||||
"source": {
|
||||
"url": "./",
|
||||
"type": "git",
|
||||
"reference": "master"
|
||||
"reference": "master-upgrade-to-latests-base"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,11 +4,11 @@ services:
|
||||
public: false
|
||||
autowire: true
|
||||
|
||||
OxidEsales\GraphQL\Skeleton\:
|
||||
__Vendor__\GraphQL\__Package__\:
|
||||
resource: 'src/*'
|
||||
exclude: 'src/**/{DataType,Exception,Infrastructure}'
|
||||
exclude: 'src/**/DataType'
|
||||
public: true
|
||||
|
||||
OxidEsales\GraphQL\Skeleton\Shared\Service\NamespaceMapper:
|
||||
class: OxidEsales\GraphQL\Skeleton\Shared\Service\NamespaceMapper
|
||||
__Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper:
|
||||
class: __Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper
|
||||
tags: ['graphql_namespace_mapper']
|
||||
|
@ -24,7 +24,7 @@ final class CategoryRepository
|
||||
$category = oxNew(CategoryEshopModel::class);
|
||||
|
||||
if (!$category->load($id)) {
|
||||
throw new NotFound($id);
|
||||
throw new NotFound();
|
||||
}
|
||||
|
||||
return new CategoryDataType(
|
||||
|
Loading…
Reference in New Issue
Block a user