@@ -60,8 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
60
60
$ composer = $ this ->findComposer ();
61
61
62
62
$ commands = [
63
- // TODO: remove specific version for stable version release
64
- $ composer . " create-project apiato/apiato:10.0.0-rc.11 \"$ directory \" $ version --remove-vcs --prefer-dist " ,
63
+ $ composer . " create-project apiato/apiato \"$ directory \" $ version --remove-vcs --prefer-dist " ,
65
64
];
66
65
67
66
if ($ directory != '. ' && $ input ->getOption ('force ' )) {
@@ -77,28 +76,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
77
76
}
78
77
79
78
if (($ process = $ this ->runCommands ($ commands , $ input , $ output ))->isSuccessful ()) {
80
- if ($ name !== '. ' ) {
81
- $ this ->replaceInFile (
82
- 'APP_URL=http://localhost ' ,
83
- 'APP_URL=http:// ' . $ name . '.test ' ,
84
- $ directory . '/.env '
85
- );
86
-
87
- $ this ->replaceInFile (
88
- 'DB_DATABASE=laravel ' ,
89
- 'DB_DATABASE= ' . str_replace ('- ' , '_ ' , strtolower ($ name )),
90
- $ directory . '/.env '
91
- );
92
-
93
- $ this ->replaceInFile (
94
- 'DB_DATABASE=laravel ' ,
95
- 'DB_DATABASE= ' . str_replace ('- ' , '_ ' , strtolower ($ name )),
96
- $ directory . '/.env.example '
97
- );
98
- }
99
79
100
- // TODO: Remove github checks if dont want to implement github support
101
- if ($ input ->getOption ('git ' ) || $ input ->getOption ('github ' ) !== false ) {
80
+ // TODO: Remove github checks if don't want to implement github support
81
+ if ($ input ->getOption ('git ' )/* || $input->getOption('github') !== false*/ ) {
102
82
$ this ->createRepository ($ directory , $ input , $ output );
103
83
}
104
84
@@ -124,7 +104,7 @@ protected function getVersion(InputInterface $input)
124
104
}
125
105
126
106
/**
127
- * Create a Git repository and commit the base Laravel skeleton.
107
+ * Create a Git repository and commit the base Apiato skeleton.
128
108
*
129
109
* @param string $directory
130
110
* @param \Symfony\Component\Console\Input\InputInterface $input
0 commit comments