Skip to content

NotCallableException when adding controller to route #1

@dsazup

Description

@dsazup

Hello,
I've been testing this package and what I usually do in silex is I have all controllers as classes. I define my routes like this:

$app = new Silex\Application();
$app['debug'] = true;
$app->get('/hello/{name}', 'Test\Controller::test');

It works perfectly in silex, however if I add this bridge to my app

$app = new DI\Bridge\Silex\Application();

$app['debug'] = true;
$app->get('/hello/{name}', 'Test\Controller::test');
$app->run();

I get NotCallableException in CallableReflection.php line 52: Test\Controller::test is not a callable
Is there an easy way to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions