File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ function () use ( $slim ) {
236236 $ slim ->get ( 'error/:errorCode ' , function ( $ errorCode ) use ( $ slim ) {
237237 $ page = new Pages \Error ( $ slim );
238238 $ page ->setI18nContext ( $ slim ->i18nContext );
239- $ page ->setTools ( $ slim ->tools );
240239 $ page ( $ errorCode );
241240 } )->name ( 'error ' );
242241
@@ -250,7 +249,6 @@ function () use ( $slim ) {
250249 $ slim ->get ( 'tools ' , function () use ( $ slim ) {
251250 $ page = new Pages \Tools ( $ slim );
252251 $ page ->setI18nContext ( $ slim ->i18nContext );
253- $ page ->setTools ( $ slim ->tools );
254252 $ page ->setLabsDao ( $ slim ->labsDao );
255253 $ page ();
256254 } )->name ( 'tools ' );
@@ -284,7 +282,6 @@ function () use ( $slim ) {
284282 $ slim ->notFound ( function () use ( $ slim ) {
285283 $ page = new Pages \Error ( $ slim );
286284 $ page ->setI18nContext ( $ slim ->i18nContext );
287- $ page ->setTools ( $ slim ->tools );
288285 $ page ( '404 ' , true );
289286 } );
290287 }
Original file line number Diff line number Diff line change 2525 * Error page
2626 */
2727class Error extends Controller {
28- /**
29- * @var \Tools\Admin\Tools $tools
30- */
31- protected $ tools ;
32-
33- /**
34- * @param \Tools\Admin\Tools $tools
35- */
36- public function setTools ( $ tools ) {
37- $ this ->tools = $ tools ;
38- }
39-
4028 /**
4129 * @param string $errorCode HTTP error code
4230 * @param bool $notFoundHandler Are we being called as the notFound
Original file line number Diff line number Diff line change 2525 * Display list of tools
2626 */
2727class Tools extends Controller {
28- /**
29- * @var \Tools\Admin\Tools $tools
30- */
31- protected $ tools ;
32-
3328 /**
3429 * @var \Tools\Admin\LabsDao $labsDao
3530 */
3631 protected $ labsDao ;
3732
38- /**
39- * @param \Tools\Admin\Tools $tools
40- */
41- public function setTools ( $ tools ) {
42- $ this ->tools = $ tools ;
43- }
44-
4533 /**
4634 * @param \Tools\Admin\LabsDao $dao
4735 */
You can’t perform that action at this time.
0 commit comments