Skip to content

Commit e286c6e

Browse files
committed
🎨 switched core to utils
1 parent 2430a77 commit e286c6e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/CreateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function leaf($input, $output, $directory): int
7272

7373
$output->writeln('<comment> - </comment>' . basename($directory) . " created successfully\n");
7474

75-
$composer = Core::findComposer();
75+
$composer = Utils\Core::findComposer();
7676

7777
$commands = [
7878
$composer . ' install'
@@ -121,7 +121,7 @@ protected function leaf($input, $output, $directory): int
121121
*/
122122
protected function execute(InputInterface $input, OutputInterface $output): int
123123
{
124-
$composer = Core::findComposer();
124+
$composer = Utils\Core::findComposer();
125125
$needsUpdate = Package::updateAvailable();
126126

127127
if ($needsUpdate) {

src/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function installDependencies($output)
4141
return 1;
4242
}
4343

44-
$composer = Core::findComposer();
44+
$composer = Utils\Core::findComposer();
4545
$process = Process::fromShellCommandline(
4646
file_exists($composerLockPath) ? "$composer install" : "$composer update",
4747
null,
@@ -73,7 +73,7 @@ protected function install($packages, $output)
7373
$package = str_replace('@', ':', $package);
7474

7575
$output->writeln("<info>Installing $package...</info>");
76-
$composer = Core::findComposer();
76+
$composer = Utils\Core::findComposer();
7777
$process = Process::fromShellCommandline(
7878
"$composer require $package",
7979
null,

src/UninstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3232
return 1;
3333
}
3434

35-
$composer = Core::findComposer();
35+
$composer = Utils\Core::findComposer();
3636

3737
foreach ($packages as $package) {
3838
if (strpos($package, '/') == false) {

src/UpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function configure()
2020

2121
protected function execute(InputInterface $input, OutputInterface $output): int
2222
{
23-
$composer = Core::findComposer();
23+
$composer = Utils\Core::findComposer();
2424
$uninstall = Process::fromShellCommandline("$composer global remove leafs/cli --no-update --no-install");
2525
$install = Process::fromShellCommandline("$composer global require leafs/cli", null, null, null, null);
2626

src/Core.php renamed to src/Utils/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Leaf\Console;
3+
namespace Leaf\Console\Utils;
44

55
class Core {
66
/**

0 commit comments

Comments
 (0)