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
bb9056d7
Commit
bb9056d7
authored
Feb 17, 2020
by
ntdinh1987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install
parent
0d2d179a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
NewCommand.php
src/NewCommand.php
+11
-3
No files found.
src/NewCommand.php
View file @
bb9056d7
...
...
@@ -29,6 +29,14 @@ class NewCommand extends Command
*/
protected
$output
;
protected
$viewZipLink
=
'http://git.vatgia.vn/vnp-framework/view/-/archive/master/view-master.zip'
;
protected
$appZipLink
=
'http://git.vatgia.vn/vnp-framework/app/-/archive/master/app-master.zip'
;
protected
$databaseZipLink
=
'http://git.vatgia.vn/vnp-framework/database/-/archive/master/database-master.zip'
;
protected
$docsZipLink
=
'http://git.vatgia.vn/vnp-framework/docs/-/archive/master/docs-master.zip'
;
/**
* Configure the command options.
*
...
...
@@ -176,7 +184,7 @@ class NewCommand extends Command
*/
protected
function
download
(
$zipFile
)
{
$response
=
(
new
Client
)
->
get
(
'http://gitlab.hoidap.vn/vnp-framework/view/repository/archive.zip?ref=master'
);
$response
=
(
new
Client
)
->
get
(
$this
->
viewZipLink
);
file_put_contents
(
$zipFile
,
$response
->
getBody
());
return
$this
;
...
...
@@ -191,7 +199,7 @@ class NewCommand extends Command
*/
protected
function
downloadApp
(
$zipFile
)
{
$response
=
(
new
Client
)
->
get
(
'http://gitlab.hoidap.vn/vnp-framework/app/repository/archive.zip?ref=master'
);
$response
=
(
new
Client
)
->
get
(
$this
->
appZipLink
);
file_put_contents
(
$zipFile
,
$response
->
getBody
());
return
$this
;
...
...
@@ -206,7 +214,7 @@ class NewCommand extends Command
*/
protected
function
downloadDatabase
(
$zipFile
)
{
$response
=
(
new
Client
)
->
get
(
'http://gitlab.hoidap.vn/vnp-framework/database/repository/archive.zip?ref=master'
);
$response
=
(
new
Client
)
->
get
(
$this
->
databaseZipLink
);
file_put_contents
(
$zipFile
,
$response
->
getBody
());
return
$this
;
...
...
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