Skip to content

Commit 5c4323c

Browse files
committed
Spike 8.0 entrypoints
1 parent beec6a7 commit 5c4323c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

services.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ services:
140140
tags:
141141
- { name: 'console.command', command: 'oe:graphql:cache-clear' }
142142

143-
# OxidEsales\GraphQL\Base\Api\Controller\ApiTestController:
144-
# public: true
143+
OxidEsales\GraphQL\Base\Api\Controller\ApiTestController:
144+
public: true
145145

146146
OxidEsales\GraphQL\Base\Api\Controller\OxapiController:
147147
public: true

src/Api/Controller/OxapiController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ public function __construct(private ModuleConfigurationDaoInterface $moduleConfi
2222
{
2323
}
2424

25-
#[Route('/oxapi/{name}/{shp}/', requirements: ['shp' => Requirement::DIGITS], methods: ['GET'])]
26-
public function foo(string $name, int $shp): Response
25+
#[Route('/oxapi/{shp}/{lang}/', requirements: ['lang' => Requirement::DIGITS], methods: ['GET'])]
26+
public function foo(int $shp, int $lang): Response
2727
{
28-
Registry::getConfig()->saveShopConfVar('string', 'testControllers', 'hello');
28+
#Registry::getConfig()->saveShopConfVar('string', 'testControllers', 'hello');
2929
return new JsonResponse(
3030
[
31-
'name' => $name,
3231
'shp' => $shp,
33-
'configParameter' => Registry::getConfig()->getShopConfVar('testControllers'),
32+
'lang' => $lang,
33+
'bla' => 'foo'
3434
]
3535
);
3636
}

0 commit comments

Comments
 (0)