Skip to content

Commit

Permalink
Move hiddeninput.exe to Resources/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Oct 16, 2012
1 parent c0f8a63 commit aefa495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Helper/DialogHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public function askConfirmation(OutputInterface $output, $question, $default = t
public function askHiddenResponse(OutputInterface $output, $question, $fallback = true)
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$exe = __DIR__ . '/hiddeninput.exe';
$exe = __DIR__ . '/../../Resources/bin/hiddeninput.exe';

// handle code running from a phar
if ('phar:' === substr(__FILE__, 0, 5)) {
$tmpExe = sys_get_temp_dir() . '/hiddeninput.exe';
$tmpExe = sys_get_temp_dir() . '/../../Resources/bin/hiddeninput.exe';
copy($exe, $tmpExe);
$exe = $tmpExe;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ You can run the unit tests with the following command:
Third Party
-----------

`hiddeninput.exe` third party binary is provided within this component. Find
sources and license at https://github.com/Seldaek/hidden-input.
`Resources/bin/hiddeninput.exe` is a third party binary provided within this
component. Find sources and license at https://github.com/Seldaek/hidden-input.

Resources
---------
Expand Down

0 comments on commit aefa495

Please sign in to comment.