diff --git a/.php_cs.dist b/.php_cs.dist index be3de8d..65c33e0 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -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; diff --git a/services.yaml b/services.yaml index f9b6202..52c38be 100644 --- a/services.yaml +++ b/services.yaml @@ -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: diff --git a/src/Category/Infrastructure/CategoryRepository.php b/src/Category/Infrastructure/CategoryRepository.php index 63d28f0..8a723dc 100644 --- a/src/Category/Infrastructure/CategoryRepository.php +++ b/src/Category/Infrastructure/CategoryRepository.php @@ -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(