Unable to resolve a value for parameter (path) in the function/method (__construct)
- Dominant language
- PHP
- Stars
- 31
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I have a similar issue to #11
```php
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:
```text
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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.