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

Unable to resolve a value for parameter (path) in the function/method (__construct) #12

Open
andrewdyer opened this issue Jul 9, 2019 · 1 comment

Comments

@andrewdyer
Copy link

I have a similar issue to #11

use Jenssegers\Lean\App;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Settings;

require __DIR__ . '/../vendor/autoload.php';

$app = new App();

$container = $app->getContainer();
$container->get('settings')->set('displayErrorDetails', true);

$app->get('/hello/{name}', function (Request $request, Response $response, string $name) {
    return $response->write('Hello, ' . $name);
});

$app->run();

Error:

Slim Application Error
The application could not run because of the following error:

Details

Type: League\Container\Exception\NotFoundException
Message: Unable to resolve a value for parameter (path) in the function/method (__construct)
File: /Users/andrew/apis/lean/vendor/league/container/src/Argument/ArgumentResolverTrait.php
Line: 78
@andrewdyer
Copy link
Author

andrewdyer commented Jul 9, 2019

A temporary fix is to install league/container specifically as version 3.2.2. The latest updates in version 3.3.0 appears to have created breaking changes.

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