Small fixes
This commit is contained in:
parent
6851ddf757
commit
8de9123000
@ -3,7 +3,7 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$header = <<<'EOF'
|
$header = <<<'EOF'
|
||||||
Copyright © __Vender__. All rights reserved.
|
Copyright © __Vendor__. All rights reserved.
|
||||||
See LICENSE file for license details.
|
See LICENSE file for license details.
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
|
|
||||||
__Vendor__\GraphQL\__Package__\:
|
__Vendor__\GraphQL\__Package__\:
|
||||||
resource: 'src/*'
|
resource: 'src/*'
|
||||||
exclude: 'src/**/DataType'
|
exclude: 'src/**/{DataType,Exception,Infrastructure}'
|
||||||
public: true
|
public: true
|
||||||
|
|
||||||
__Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper:
|
__Vendor__\GraphQL\__Package__\Shared\Service\NamespaceMapper:
|
||||||
|
@ -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();
|
throw new NotFound($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new CategoryDataType(
|
return new CategoryDataType(
|
||||||
|
Loading…
Reference in New Issue
Block a user