|
@@ 97-105 (lines=9) @@
|
| 94 |
|
|
| 95 |
|
$c[PlatesEngine::class] = $viewEngine; |
| 96 |
|
|
| 97 |
|
$c[NotFoundDecorator::class] = $c->factory(function (Container $c) { |
| 98 |
|
$layout = $c->get('default_layout'); |
| 99 |
|
$templates = $c->get('error_pages'); |
| 100 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 101 |
|
$notFoundDecorator = new NotFoundDecorator($viewEngine, $templates); |
| 102 |
|
$notFoundDecorator->setLayout($layout); |
| 103 |
|
|
| 104 |
|
return $notFoundDecorator; |
| 105 |
|
}); |
| 106 |
|
|
| 107 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 108 |
|
$layout = $c->get('default_layout'); |
|
@@ 107-115 (lines=9) @@
|
| 104 |
|
return $notFoundDecorator; |
| 105 |
|
}); |
| 106 |
|
|
| 107 |
|
$c[NotAllowedDecorator::class] = $c->factory(function (Container $c) { |
| 108 |
|
$layout = $c->get('default_layout'); |
| 109 |
|
$templates = $c->get('error_pages'); |
| 110 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 111 |
|
$notAllowedDecorator = new NotAllowedDecorator($viewEngine, $templates); |
| 112 |
|
$notAllowedDecorator->setLayout($layout); |
| 113 |
|
|
| 114 |
|
return $notAllowedDecorator; |
| 115 |
|
}); |
| 116 |
|
|
| 117 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 118 |
|
$viewEngine = $c->get(PlatesEngine::class); |
|
@@ 117-125 (lines=9) @@
|
| 114 |
|
return $notAllowedDecorator; |
| 115 |
|
}); |
| 116 |
|
|
| 117 |
|
$c[ExceptionDecorator::class] = $c->factory(function (Container $c) { |
| 118 |
|
$viewEngine = $c->get(PlatesEngine::class); |
| 119 |
|
$layout = $c->get('default_layout'); |
| 120 |
|
$templates = $c->get('error_pages'); |
| 121 |
|
$decorator = new ExceptionDecorator($viewEngine, $templates); |
| 122 |
|
$decorator->setLayout($layout); |
| 123 |
|
|
| 124 |
|
return $decorator; |
| 125 |
|
}); |
| 126 |
|
|
| 127 |
|
$c[PlatesStrategy::class] = $c->factory(function (Container $c) { |
| 128 |
|
$viewEngine = $c->get(PlatesEngine::class); |