jenssegers / jenssegers/lean

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

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.