Skip to content

Commit 1d7c359

Browse files
committed
Remove some unused code
1 parent a9384c0 commit 1d7c359

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

commands/NewCommand.php

+4-24
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6060
$composer = $this->findComposer();
6161

6262
$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",
6564
];
6665

6766
if ($directory != '.' && $input->getOption('force')) {
@@ -77,28 +76,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
7776
}
7877

7978
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-
}
9979

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*/) {
10282
$this->createRepository($directory, $input, $output);
10383
}
10484

@@ -124,7 +104,7 @@ protected function getVersion(InputInterface $input)
124104
}
125105

126106
/**
127-
* Create a Git repository and commit the base Laravel skeleton.
107+
* Create a Git repository and commit the base Apiato skeleton.
128108
*
129109
* @param string $directory
130110
* @param \Symfony\Component\Console\Input\InputInterface $input

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy