Pārlūkot izejas kodu

[HttpKernel] Adding a line break to the end of the Kernel die() statements so that the output is more natural when receiving this message from the terminal.

Ryan Weaver 14 gadi atpakaļ
vecāks
revīzija
a0fc4240f9
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/Symfony/Component/HttpKernel/Kernel.php

+ 2 - 2
src/Symfony/Component/HttpKernel/Kernel.php

@@ -480,10 +480,10 @@ abstract class Kernel implements KernelInterface
             $dir = $container->getParameter(sprintf('kernel.%s_dir', $name));
             if (!is_dir($dir)) {
                 if (false === @mkdir($dir, 0777, true)) {
-                    die(sprintf('Unable to create the %s directory (%s)', $name, dirname($dir)));
+                    die(sprintf("Unable to create the %s directory (%s)\n", $name, dirname($dir)));
                 }
             } elseif (!is_writable($dir)) {
-                die(sprintf('Unable to write in the %s directory (%s)', $name, $dir));
+                die(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
             }
         }