File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments