|
@@ 112-120 (lines=9) @@
|
| 109 |
|
|
| 110 |
|
$c[PlatesEngine::class] = $viewEngine; |
| 111 |
|
|
| 112 |
|
$c[NotFoundDecorator::class] = $c->factory(function (Container $c) { |
| 113 |
|
$layout = $c->get('default_layout'); |
| 114 |
|
$templates = $c->get('error_pages'); |
| 115 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 116 |
|
$notFoundDecorator = new NotFoundDecorator($viewEngine, $templates); |
| 117 |
|
$notFoundDecorator->setLayout($layout); |
| 118 |
|
|
| 119 |
|
return $notFoundDecorator; |
| 120 |
|
}); |
| 121 |
|
|
| 122 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 123 |
|
$layout = $c->get('default_layout'); |
|
@@ 122-130 (lines=9) @@
|
| 119 |
|
return $notFoundDecorator; |
| 120 |
|
}); |
| 121 |
|
|
| 122 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 123 |
|
$layout = $c->get('default_layout'); |
| 124 |
|
$templates = $c->get('error_pages'); |
| 125 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 126 |
|
$notAllowedDecorator = new NotAllowedDecorator($viewEngine, $templates); |
| 127 |
|
$notAllowedDecorator->setLayout($layout); |
| 128 |
|
|
| 129 |
|
return $notAllowedDecorator; |
| 130 |
|
}); |
| 131 |
|
|
| 132 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 133 |
|
$viewEngine = $c->get(PlatesEngine::class); |
|
@@ 132-140 (lines=9) @@
|
| 129 |
|
return $notAllowedDecorator; |
| 130 |
|
}); |
| 131 |
|
|
| 132 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 133 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 134 |
|
$layout = $c->get('default_layout'); |
| 135 |
|
$templates = $c->get('error_pages'); |
| 136 |
|
$decorator = new ExceptionDecorator($viewEngine, $templates); |
| 137 |
|
$decorator->setLayout($layout); |
| 138 |
|
|
| 139 |
|
return $decorator; |
| 140 |
|
}); |
| 141 |
|
|
| 142 |
|
$c[PlatesStrategy::class] = $c->factory(function (Container $c) { |
| 143 |
|
$viewEngine = $c->get(PlatesEngine::class); |