Skip to content

Commit f5ebbff

Browse files
committed
add auth option
1 parent e5ae718 commit f5ebbff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

laravel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (file_exists(__DIR__.'/../../autoload.php')) {
77
require __DIR__.'/vendor/autoload.php';
88
}
99

10-
$app = new Symfony\Component\Console\Application('Laravel Installer', '2.2.0');
10+
$app = new Symfony\Component\Console\Application('Laravel Installer', '2.2.2');
1111
$app->add(new Laravel\Installer\Console\NewCommand);
1212

1313
$app->run();

src/NewCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ protected function configure()
2828
->setDescription('Create a new Laravel application')
2929
->addArgument('name', InputArgument::OPTIONAL)
3030
->addOption('dev', null, InputOption::VALUE_NONE, 'Installs the latest "development" release')
31+
->addOption('auth', null, InputOption::VALUE_NONE, 'Installs the Laravel authentication scaffolding')
3132
->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists');
3233
}
3334

@@ -131,6 +132,9 @@ protected function download($zipFile, $version = 'master')
131132
case 'develop':
132133
$filename = 'latest-develop.zip';
133134
break;
135+
case 'auth':
136+
$filename = 'latest-auth.zip';
137+
break;
134138
case 'master':
135139
$filename = 'latest.zip';
136140
break;
@@ -215,6 +219,10 @@ protected function getVersion(InputInterface $input)
215219
return 'develop';
216220
}
217221

222+
if ($input->getOption('auth')) {
223+
return 'auth';
224+
}
225+
218226
return 'master';
219227
}
220228

0 commit comments

Comments
 (0)