Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
installer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vnp-framework
installer
Commits
3a92abcf
Commit
3a92abcf
authored
Feb 15, 2017
by
Taylor Otwell
Committed by
GitHub
Feb 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #62 from heyhoo/master
5.2 option flag doesn't work anymore.
parents
adf10af8
304809c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
NewCommand.php
src/NewCommand.php
+1
-9
No files found.
src/NewCommand.php
View file @
3a92abcf
...
...
@@ -25,8 +25,7 @@ class NewCommand extends Command
->
setName
(
'new'
)
->
setDescription
(
'Create a new Laravel application.'
)
->
addArgument
(
'name'
,
InputArgument
::
OPTIONAL
)
->
addOption
(
'dev'
,
null
,
InputOption
::
VALUE_NONE
,
'Installs the latest "development" release'
)
->
addOption
(
'5.2'
,
null
,
InputOption
::
VALUE_NONE
,
'Installs the "5.2" release'
);
->
addOption
(
'dev'
,
null
,
InputOption
::
VALUE_NONE
,
'Installs the latest "development" release'
);
}
/**
...
...
@@ -121,9 +120,6 @@ class NewCommand extends Command
case
'master'
:
$filename
=
'latest.zip'
;
break
;
case
'5.2'
:
$filename
=
'latest-52.zip'
;
break
;
}
$response
=
(
new
Client
)
->
get
(
'http://cabinet.laravel.com/'
.
$filename
);
...
...
@@ -180,10 +176,6 @@ class NewCommand extends Command
return
'develop'
;
}
if
(
$input
->
getOption
(
'5.2'
))
{
return
'5.2'
;
}
return
'master'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment