|
@@ 102-110 (lines=9) @@
|
| 99 |
|
|
| 100 |
|
$c[PlatesEngine::class] = $viewEngine; |
| 101 |
|
|
| 102 |
|
$c[NotFoundDecorator::class] = $c->factory(function (Container $c) { |
| 103 |
|
$layout = $c->get('default_layout'); |
| 104 |
|
$templates = $c->get('error_pages'); |
| 105 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 106 |
|
$notFoundDecorator = new NotFoundDecorator($viewEngine, $templates); |
| 107 |
|
$notFoundDecorator->setLayout($layout); |
| 108 |
|
|
| 109 |
|
return $notFoundDecorator; |
| 110 |
|
}); |
| 111 |
|
|
| 112 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 113 |
|
$layout = $c->get('default_layout'); |
|
@@ 112-120 (lines=9) @@
|
| 109 |
|
return $notFoundDecorator; |
| 110 |
|
}); |
| 111 |
|
|
| 112 |
|
$c[NotAllowedDecorator::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 |
|
$notAllowedDecorator = new NotAllowedDecorator($viewEngine, $templates); |
| 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); |
|
@@ 122-130 (lines=9) @@
|
| 119 |
|
return $notAllowedDecorator; |
| 120 |
|
}); |
| 121 |
|
|
| 122 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 123 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 124 |
|
$layout = $c->get('default_layout'); |
| 125 |
|
$templates = $c->get('error_pages'); |
| 126 |
|
$decorator = new ExceptionDecorator($viewEngine, $templates); |
| 127 |
|
$decorator->setLayout($layout); |
| 128 |
|
|
| 129 |
|
return $decorator; |
| 130 |
|
}); |
| 131 |
|
|
| 132 |
|
$c[PlatesStrategy::class] = $c->factory(function (Container $c) { |
| 133 |
|
$viewEngine = $c->get(PlatesEngine::class); |