Skip to content

Commit

Permalink
Fixing installer after recent changes in composer
Browse files Browse the repository at this point in the history
Fixes #241
  • Loading branch information
lorenzo committed May 1, 2015
1 parent 8fb4d0d commit 68cfee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ public static function postInstall(Event $event)

// ask if the permissions should be changed
if ($io->isInteractive()) {
$validator = (function ($arg) {
$validator = function ($arg) {
if (in_array($arg, ['Y', 'y', 'N', 'n'])) {
return $arg;
}
throw new Exception('This is not a valid answer. Please choose Y or n.');
});
};
$setFolderPermissions = $io->askAndValidate(
'<info>Set Folder Permissions ? (Default to Y)</info> [<comment>Y,n</comment>]? ',
$validator,
false,
10,
'Y'
);

Expand Down

0 comments on commit 68cfee9

Please sign in to comment.