private function displayInstallationResult()
    {
        if (empty($this->requirementsErrors)) {
            $this->output->writeln(sprintf(
                " <info>%s</info>  Symfony Demo Application was <info>successfully installed</info>. Now you can:\n",
                defined('PHP_WINDOWS_VERSION_BUILD') ? 'OK' : '✔'
            ));
        } else {
            $this->output->writeln(sprintf(
                " <comment>%s</comment>  Symfony Demo Application was <info>successfully installed</info> but your system doesn't meet the\n".
                "     technical requirements to run Symfony applications! Fix the following issues before executing it:\n",
                defined('PHP_WINDOWS_VERSION_BUILD') ? 'FAILED' : '✕'
            ));

            foreach ($this->requirementsErrors as $helpText) {
                $this->output->writeln(' * '.$helpText);
            }

            $this->output->writeln(sprintf(
                " After fixing these issues, re-check Symfony requirements executing this command:\n\n".
                "   <comment>php %s/bin/symfony_requirements</comment>\n\n".
                " Then, you can:\n",
                $this->projectName
            ));
        }

        $serverRunCommand = extension_loaded('pcntl') ? 'server:start' : 'server:run';

        $this->output->writeln(sprintf(
            "    1. Change your current directory to <comment>%s</comment>\n\n".
            "    2. Execute the <comment>php bin/console %s</comment> command to run the demo application.\n\n".
            "    3. Browse to the <comment>http://localhost:8000</comment> URL to see the demo application in action.\n\n",
            $this->projectDir, $serverRunCommand
        ));

        $this->output->writeln(
            "<bg=yellow> WARNING </>\n\n".
            "   This installer downloads the old Symfony Demo version based on Symfony 3.\n".
            "   If you prefer to install the new version based on Symfony 4 and Symfony Flex,\n".
            "   execute the following command:\n\n".
            "     composer create-project symfony/symfony-demo\n");

        return $this;
    }