Skip to content

Commit a25ebf5

Browse files
committed
refactor: remove unused Roster dependency from InstallCommand
1 parent d955639 commit a25ebf5

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Console/InstallCommand.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Laravel\Boost\Install\Herd;
2020
use Laravel\Prompts\Concerns\Colors;
2121
use Laravel\Prompts\Terminal;
22-
use Laravel\Roster\Roster;
2322
use Symfony\Component\Console\Attribute\AsCommand;
2423
use Symfony\Component\Finder\Finder;
2524

@@ -37,8 +36,6 @@ class InstallCommand extends Command
3736

3837
private Herd $herd;
3938

40-
private Roster $roster;
41-
4239
private Terminal $terminal;
4340

4441
/** @var Collection<int, Agent> */
@@ -65,9 +62,9 @@ class InstallCommand extends Command
6562

6663
private string $redCross;
6764

68-
public function handle(CodeEnvironmentsDetector $codeEnvironmentsDetector, Herd $herd, Roster $roster, Terminal $terminal): void
65+
public function handle(CodeEnvironmentsDetector $codeEnvironmentsDetector, Herd $herd, Terminal $terminal): void
6966
{
70-
$this->bootstrap($codeEnvironmentsDetector, $herd, $roster, $terminal);
67+
$this->bootstrap($codeEnvironmentsDetector, $herd, $terminal);
7168

7269
$this->displayBoostHeader();
7370
$this->discoverEnvironment();
@@ -76,11 +73,10 @@ public function handle(CodeEnvironmentsDetector $codeEnvironmentsDetector, Herd
7673
$this->outro();
7774
}
7875

79-
private function bootstrap(CodeEnvironmentsDetector $codeEnvironmentsDetector, Herd $herd, Roster $roster, Terminal $terminal): void
76+
private function bootstrap(CodeEnvironmentsDetector $codeEnvironmentsDetector, Herd $herd, Terminal $terminal): void
8077
{
8178
$this->codeEnvironmentsDetector = $codeEnvironmentsDetector;
8279
$this->herd = $herd;
83-
$this->roster = $roster;
8480
$this->terminal = $terminal;
8581

8682
$this->terminal->initDimensions();
@@ -208,9 +204,6 @@ private function hyperlink(string $label, string $url): string
208204
* This would likely just create headaches for them or be a waste of time as they
209205
* won't have the CI setup to make use of them anyway, so we're just wasting their
210206
* tokens/money by enforcing them.
211-
*
212-
* @param bool $ask
213-
* @return bool
214207
*/
215208
protected function determineTestEnforcement(bool $ask = true): bool
216209
{

0 commit comments

Comments
 (0)