Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object of class App\HelloWorld\Communication\Controller\HelloWorldController could not be converted to string #5

Open
Asisyas opened this issue Jan 17, 2023 · 1 comment

Comments

@Asisyas
Copy link
Member

Asisyas commented Jan 17, 2023

Method 'index2' is not defined in Controller.

$httpFacade
     ->createRouteBuilder()
     ->setController([HelloWorldController::class, 'index2'])
      ->setUri('/')
      ->setName('hello_world')
      ->build();

Exception: ContainerExceptionInterface with message: Object of class App\HelloWorld\Communication\Controller\HelloWorldController could not be converted to string

Accepted: RouteConfigurationException

@Asisyas
Copy link
Member Author

Asisyas commented Jan 17, 2023

Should be fixed in the Autowire component.

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

No branches or pull requests

1 participant