Skip to content

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

@Asisyas

Description

@Asisyas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions