1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add dependencies and update steps in Purchase.php

This commit is contained in:
Benjamin Beganović 2024-02-28 17:55:37 +01:00
parent 2dcc070af2
commit 70fdc73b2d

View File

@ -13,6 +13,7 @@
namespace App\Livewire\BillingPortal;
use App\Libraries\MultiDB;
use App\Livewire\BillingPortal\Authentication\RegisterOrLogin;
use App\Livewire\BillingPortal\Cart\Cart;
use App\Livewire\BillingPortal\Payments\Methods;
use App\Models\Subscription;
@ -35,12 +36,21 @@ class Purchase extends Component
//
public static array $dependencies = [
Login::class => [],
RegisterOrLogin::class => [],
Register::class => [],
Cart::class => [],
Methods::class => [Login::class, RegisterOrLogin::class, Register::class],
RFF::class => [Login::class, RegisterOrLogin::class, Register::class],
];
public int $step = 0;
public array $steps = [
public static array $steps = [
Setup::class,
RegisterOrLogin::class,
Cart::class,
Authentication::class,
Methods::class,
RFF::class,
Submit::class,