1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 22:44:05 +00:00

move console classes to Console directory

This commit is contained in:
Abrar Ahmad 2022-08-26 15:37:27 +05:00
parent 50d903feb8
commit 8418fac990
5 changed files with 6 additions and 5 deletions

View file

@ -2,12 +2,13 @@
declare(strict_types=1); declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Etc; namespace Stancl\Tenancy\Tests\Etc\Console;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Stancl\Tenancy\Concerns\HasATenantsOption; use Stancl\Tenancy\Concerns\HasATenantsOption;
use Stancl\Tenancy\Concerns\TenantAwareCommand; use Stancl\Tenancy\Concerns\TenantAwareCommand;
use Stancl\Tenancy\Tests\Etc\User;
class AddUserCommand extends Command class AddUserCommand extends Command
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Etc; namespace Stancl\Tenancy\Tests\Etc\Console;
use Orchestra\Testbench\Foundation\Console\Kernel; use Orchestra\Testbench\Foundation\Console\Kernel;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Etc; namespace Stancl\Tenancy\Tests\Etc\Console;
use Illuminate\Console\Command; use Illuminate\Console\Command;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Stancl\Tenancy\Tests\Etc; namespace Stancl\Tenancy\Tests\Etc\Console;
use Illuminate\Console\Command; use Illuminate\Console\Command;

View file

@ -146,7 +146,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
*/ */
protected function resolveApplicationConsoleKernel($app) protected function resolveApplicationConsoleKernel($app)
{ {
$app->singleton('Illuminate\Contracts\Console\Kernel', Etc\ConsoleKernel::class); $app->singleton('Illuminate\Contracts\Console\Kernel', Etc\Console\ConsoleKernel::class);
} }
public function randomString(int $length = 10) public function randomString(int $length = 10)