@@ -26,37 +26,6 @@ public function __construct(Router\RouterInterface $router, Template\TemplateRen
2626
2727 public function __invoke (ServerRequestInterface $ request , ResponseInterface $ response , callable $ next = null )
2828 {
29- $ data = [];
30-
31- if ($ this ->router instanceof Router \AuraRouter) {
32- $ data ['routerName ' ] = 'Aura.Router ' ;
33- $ data ['routerDocs ' ] = 'http://auraphp.com/packages/2.x/Router.html ' ;
34- } elseif ($ this ->router instanceof Router \FastRouteRouter) {
35- $ data ['routerName ' ] = 'FastRoute ' ;
36- $ data ['routerDocs ' ] = 'https://github.com/nikic/FastRoute ' ;
37- } elseif ($ this ->router instanceof Router \ZendRouter) {
38- $ data ['routerName ' ] = 'Zend Router ' ;
39- $ data ['routerDocs ' ] = 'http://framework.zend.com/manual/current/en/modules/zend.mvc.routing.html ' ;
40- }
41-
42- if ($ this ->template instanceof PlatesRenderer) {
43- $ data ['templateName ' ] = 'Plates ' ;
44- $ data ['templateDocs ' ] = 'http://platesphp.com/ ' ;
45- } elseif ($ this ->template instanceof TwigRenderer) {
46- $ data ['templateName ' ] = 'Twig ' ;
47- $ data ['templateDocs ' ] = 'http://twig.sensiolabs.org/documentation ' ;
48- } elseif ($ this ->template instanceof ZendViewRenderer) {
49- $ data ['templateName ' ] = 'Zend View ' ;
50- $ data ['templateDocs ' ] = 'http://framework.zend.com/manual/current/en/modules/zend.view.quick-start.html ' ;
51- }
52-
53- if (!$ this ->template ) {
54- return new JsonResponse ([
55- 'welcome ' => 'Congratulations! You have installed the zend-expressive skeleton application. ' ,
56- 'docsUrl ' => 'zend-expressive.readthedocs.org ' ,
57- ]);
58- }
59-
60- return new HtmlResponse ($ this ->template ->render ('app::home-page ' , $ data ));
29+ return new JsonResponse ("ok " );
6130 }
6231}
0 commit comments