minor tweaks to the welcome page

This commit is contained in:
Yonel Ceruto 2019-09-09 00:10:53 -04:00
parent 81ac674b61
commit ddffc972a8
2 changed files with 11 additions and 11 deletions

View File

@ -164,11 +164,11 @@ class RouterListener implements EventSubscriberInterface
private function createWelcomeResponse() private function createWelcomeResponse()
{ {
$version = Kernel::VERSION; $version = Kernel::VERSION;
$baseDir = realpath($this->projectDir).\DIRECTORY_SEPARATOR; $projectDir = realpath($this->projectDir).\DIRECTORY_SEPARATOR;
$docVersion = substr(Kernel::VERSION, 0, 3); $docVersion = substr(Kernel::VERSION, 0, 3);
ob_start(); ob_start();
include __DIR__.'/../Resources/welcome.html.php'; include \dirname(__DIR__).'/Resources/welcome.html.php';
return new Response(ob_get_clean(), Response::HTTP_NOT_FOUND); return new Response(ob_get_clean(), Response::HTTP_NOT_FOUND);
} }

File diff suppressed because one or more lines are too long