diff --git a/composer.lock b/composer.lock
index 7c48514..ab03262 100644
--- a/composer.lock
+++ b/composer.lock
@@ -5,6 +5,7 @@
"This file is @generated automatically"
],
"hash": "13fe84898883f8398e179e43a0716b31",
+ "content-hash": "71ae2f63f6819897e957523449293f11",
"packages": [
{
"name": "guzzlehttp/guzzle",
@@ -167,16 +168,16 @@
},
{
"name": "pimple/pimple",
- "version": "v3.0.1",
+ "version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/silexphp/Pimple.git",
- "reference": "3313af5935dbc560fab845b76a1ca351b47855af"
+ "reference": "a30f7d6e57565a2e1a316e1baf2a483f788b258a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/silexphp/Pimple/zipball/3313af5935dbc560fab845b76a1ca351b47855af",
- "reference": "3313af5935dbc560fab845b76a1ca351b47855af",
+ "url": "https://api.github.com/repos/silexphp/Pimple/zipball/a30f7d6e57565a2e1a316e1baf2a483f788b258a",
+ "reference": "a30f7d6e57565a2e1a316e1baf2a483f788b258a",
"shasum": ""
},
"require": {
@@ -203,26 +204,26 @@
"email": "fabien@symfony.com"
}
],
- "description": "Pimple is a simple Dependency Injection Container for PHP 5.3",
+ "description": "Pimple, a simple Dependency Injection Container",
"homepage": "http://pimple.sensiolabs.org",
"keywords": [
"container",
"dependency injection"
],
- "time": "2015-07-30 09:57:46"
+ "time": "2015-09-11 15:10:35"
},
{
"name": "raulfraile/distill",
- "version": "v0.9.8",
+ "version": "v0.9.9",
"source": {
"type": "git",
"url": "https://github.com/raulfraile/distill.git",
- "reference": "1920a69bcba9b0834cfe9eb93fe55e19b1a04422"
+ "reference": "8bc2fb68b570c07e9fa35e4b5d631bca68fcb193"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/raulfraile/distill/zipball/1920a69bcba9b0834cfe9eb93fe55e19b1a04422",
- "reference": "1920a69bcba9b0834cfe9eb93fe55e19b1a04422",
+ "url": "https://api.github.com/repos/raulfraile/distill/zipball/8bc2fb68b570c07e9fa35e4b5d631bca68fcb193",
+ "reference": "8bc2fb68b570c07e9fa35e4b5d631bca68fcb193",
"shasum": ""
},
"require": {
@@ -278,7 +279,7 @@
"xz",
"zip"
],
- "time": "2014-12-23 07:44:16"
+ "time": "2015-10-17 06:41:00"
},
{
"name": "react/promise",
@@ -326,16 +327,16 @@
},
{
"name": "symfony/console",
- "version": "v2.7.4",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Console.git",
- "reference": "9ff9032151186bd66ecee727d728f1319f52d1d8"
+ "url": "https://github.com/symfony/console.git",
+ "reference": "06cb17c013a82f94a3d840682b49425cd00a2161"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Console/zipball/9ff9032151186bd66ecee727d728f1319f52d1d8",
- "reference": "9ff9032151186bd66ecee727d728f1319f52d1d8",
+ "url": "https://api.github.com/repos/symfony/console/zipball/06cb17c013a82f94a3d840682b49425cd00a2161",
+ "reference": "06cb17c013a82f94a3d840682b49425cd00a2161",
"shasum": ""
},
"require": {
@@ -379,20 +380,20 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
- "time": "2015-09-03 11:40:38"
+ "time": "2015-09-25 08:32:23"
},
{
"name": "symfony/filesystem",
- "version": "v2.7.4",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Filesystem.git",
- "reference": "f079e9933799929584200b9a926f72f29e291654"
+ "url": "https://github.com/symfony/filesystem.git",
+ "reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Filesystem/zipball/f079e9933799929584200b9a926f72f29e291654",
- "reference": "f079e9933799929584200b9a926f72f29e291654",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/a17f8a17c20e8614c15b8e116e2f4bcde102cfab",
+ "reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab",
"shasum": ""
},
"require": {
@@ -428,20 +429,20 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
- "time": "2015-08-27 07:03:44"
+ "time": "2015-09-09 17:42:36"
},
{
"name": "symfony/process",
- "version": "v2.7.4",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Process.git",
- "reference": "f7b3f73f70a7f8f49a1c838dc3debbf054732d8e"
+ "url": "https://github.com/symfony/process.git",
+ "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Process/zipball/f7b3f73f70a7f8f49a1c838dc3debbf054732d8e",
- "reference": "f7b3f73f70a7f8f49a1c838dc3debbf054732d8e",
+ "url": "https://api.github.com/repos/symfony/process/zipball/b27c8e317922cd3cdd3600850273cf6b82b2e8e9",
+ "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9",
"shasum": ""
},
"require": {
@@ -477,7 +478,7 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
- "time": "2015-08-27 06:45:45"
+ "time": "2015-09-19 19:59:23"
}
],
"packages-dev": [],
diff --git a/src/Symfony/Installer/NewCommand.php b/src/Symfony/Installer/NewCommand.php
index 15413c2..c40d2c9 100644
--- a/src/Symfony/Installer/NewCommand.php
+++ b/src/Symfony/Installer/NewCommand.php
@@ -254,14 +254,18 @@ protected function displayInstallationResult()
));
}
+ if ('.' !== $this->projectDir) {
+ $this->output->writeln(sprintf(
+ " * Change your current directory to %s\n\n", $this->projectDir
+ ));
+ }
+
$this->output->writeln(sprintf(
- " * Change your current directory to %s\n\n".
" * Configure your application in app/config/parameters.yml file.\n\n".
" * Run your application:\n".
" 1. Execute the php app/console server:run command.\n".
" 2. Browse to the http://localhost:8000 URL.\n\n".
- " * Read the documentation at http://symfony.com/doc\n",
- $this->projectDir
+ " * Read the documentation at http://symfony.com/doc\n"
));
return $this;
diff --git a/tests/Symfony/Installer/Tests/IntegrationTest.php b/tests/Symfony/Installer/Tests/IntegrationTest.php
index 21a6e17..c7f9b07 100644
--- a/tests/Symfony/Installer/Tests/IntegrationTest.php
+++ b/tests/Symfony/Installer/Tests/IntegrationTest.php
@@ -61,6 +61,19 @@ public function testSymfonyInstallation($commandArguments, $messageRegexp, $vers
$this->assertRegExp($versionRegexp, $output);
}
+ public function testSymfonyInstallationInCurrentDirectory()
+ {
+ $projectDir = sprintf('%s/my_test_project', sys_get_temp_dir());
+ $this->fs->remove($projectDir);
+ $this->fs->mkdir($projectDir);
+
+ $output = $this->runCommand(sprintf('php %s/symfony.phar new . 2.7.5', $this->rootDir), $projectDir);
+ $this->assertContains('Downloading Symfony...', $output);
+
+ $output = $this->runCommand('php app/console --version', $projectDir);
+ $this->assertContains('Symfony version 2.7.5 - app/dev/debug', $output);
+ }
+
/**
* Runs the given string as a command and returns the resulting output.
* The CWD is set to the root project directory to simplify command paths.