Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Cannot autowire argument $client #3

Open
alphapb opened this issue Aug 9, 2021 · 7 comments
Open

Cannot autowire argument $client #3

alphapb opened this issue Aug 9, 2021 · 7 comments

Comments

@alphapb
Copy link

alphapb commented Aug 9, 2021

Hi,

im trying out App-Development and am so far done with a local docker-development-setup.
The ExampleApp can be installed/registered. Using the routes though there is always "500 Internal server error".
First with message Cannot autowire argument $client of "App\Controller\OrderController::iframeOrderList()": it references class "App\SwagAppsystem\Client" but no such service exists.
If you change constructor of Client-Class from private to public the next error shows same message for Credentials and when you put the constructor from Credentials to public instead of private it then gives error about "shopUrl" type-hinted by string should be configured explicitly.

What am i doing wrong?

@DannyDan
Copy link

Hi,
have you solved the issue?

I am facing the same problem:
Cannot autowire argument $client of "App\Controller\OrderController::orderPlacedEvent()": it references class "App\SwagAppsystem\Client" but no such service exists.

@alphapb
Copy link
Author

alphapb commented Sep 26, 2021 via email

@DannyDan
Copy link

Thanks for the response. I will try it with AppTemplate then, but its a little confusing in the docs:
"At first, you need to clone the app template from GitHub and create a manifest.xml for your app. Or take a glance at our fully working example based on this template: appExample."

@DannyDan
Copy link

Hmm, same problem with the "AppTemplate" project. "Cannot autowire" :(

@DannyDan
Copy link

DannyDan commented Sep 27, 2021

OK, just got the info, that the docs are totally outdated and the sample project is in a total different repository!
https://github.com/shopware/AppTemplate
@shopware: please take the time to update your docs in time to save the developers valuable time!

@rene-schwabe
Copy link

@shopware Please update this repository. Spend some time on this outdated example.

@ungthp
Copy link

ungthp commented Mar 18, 2022

I have the same error message
I found that when I access the api without these parameters or wrong value, the error msg ( it references class "App\SwagAppsystem\Client" but no such service exists. ) will appear

  • shop-id=
  • shop-url=
  • timestamp=
  • sw-version=
  • sw-context-language=
  • sw-user-language=
  • shopware-shop-signature=

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants