Compare commits

...

8 Commits

Author SHA1 Message Date
a40fee4819 add ids 2024-07-19 18:13:56 +02:00
a54568abad set json 2024-07-19 17:56:27 +02:00
7f5784d710 add php v8 2024-07-19 17:31:08 +02:00
MohannadAlturk
5c5b74fcdf
Update README.md
Travis no longer usable
2023-03-20 14:06:23 +01:00
Anton Fedurtsya
570964309b
Merge pull request #1 from hkreuter/master_fixes
Small fixes
2021-08-19 17:26:43 +03:00
hkreuter
8de9123000 Small fixes 2021-06-20 18:28:17 +02:00
Florian Engelhardt
6851ddf757
Add install into shop section 2021-04-22 14:03:37 +02:00
Florian Engelhardt
7e29580d2e
fix packages 2021-04-21 15:22:25 +02:00
7 changed files with 22 additions and 15 deletions

View File

@ -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;

View File

@ -1,7 +1,7 @@
# 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)
[![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,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

View File

@ -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": {

View File

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

View File

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

View File

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

View File

@ -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(