-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Milestone
Description
Issue: Inside an application closure function, $this
is undefined.
To Reproduce:
/// ...
$app->get('/', function (Request $request, Response $response) {
echo nl2br(print_r($this, true)); // or try $temp = $this;
return $response;
});
Expected Result: Should return an instance of the Hawkbit\Application object.
The same thing happens inside $app->group()
Note: Also on an unrelated note, this link in the docs leads to a 404 "http://container.thephpleague.com/service-providers/"