Skip to content

Commit

Permalink
Fixing examples
Browse files Browse the repository at this point in the history
Signed-off-by: RJ Garcia <rj@bighead.net>
  • Loading branch information
ragboyjr committed Mar 12, 2017
1 parent 689c86f commit d184012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/container-middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
$handler = mw\compose([
function($i) { return $i; },
function($i, $next) {
$ctx = $next->getContext();
return $next($i + $ctx['i']);
$c = $next->getContext()->getContainer();
return $next($i + $c->get('i'));
},
'inc_mw'
], new Mw\Context\ContainerContext($container->toInterop()));
Expand Down

0 comments on commit d184012

Please sign in to comment.