|
@@ 104-111 (lines=8) @@
|
| 101 |
|
|
| 102 |
|
$c[PlatesEngine::class] = $viewEngine; |
| 103 |
|
|
| 104 |
|
$c[NotFoundDecorator::class] = $c->factory(function (Container $c) { |
| 105 |
|
$layout = $c->get('default_layout'); |
| 106 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 107 |
|
$notFoundDecorator = new NotFoundDecorator($viewEngine); |
| 108 |
|
$notFoundDecorator->setLayout($layout); |
| 109 |
|
|
| 110 |
|
return $notFoundDecorator; |
| 111 |
|
}); |
| 112 |
|
|
| 113 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 114 |
|
$layout = $c->get('default_layout'); |
|
@@ 113-120 (lines=8) @@
|
| 110 |
|
return $notFoundDecorator; |
| 111 |
|
}); |
| 112 |
|
|
| 113 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 114 |
|
$layout = $c->get('default_layout'); |
| 115 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 116 |
|
$notAllowedDecorator = new NotAllowedDecorator($viewEngine); |
| 117 |
|
$notAllowedDecorator->setLayout($layout); |
| 118 |
|
|
| 119 |
|
return $notAllowedDecorator; |
| 120 |
|
}); |
| 121 |
|
|
| 122 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 123 |
|
$viewEngine = $c->get(PlatesEngine::class); |