mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Refactor dependencies in Purchase class
This commit is contained in:
parent
6c2d62f0c8
commit
f67b6649cb
@ -41,12 +41,30 @@ class Purchase extends Component
|
||||
public string $id;
|
||||
|
||||
public static array $dependencies = [
|
||||
Login::class => [],
|
||||
RegisterOrLogin::class => [],
|
||||
Register::class => [],
|
||||
Cart::class => [],
|
||||
Methods::class => [Login::class, RegisterOrLogin::class, Register::class, RFF::class],
|
||||
RFF::class => [Login::class, RegisterOrLogin::class, Register::class],
|
||||
Login::class => [
|
||||
'id' => 'auth.login',
|
||||
'dependencies' => [],
|
||||
],
|
||||
RegisterOrLogin::class => [
|
||||
'id' => 'auth.login-or-register',
|
||||
'dependencies' => [],
|
||||
],
|
||||
Register::class => [
|
||||
'id' => 'auth.register',
|
||||
'dependencies' => [],
|
||||
],
|
||||
Cart::class => [
|
||||
'id' => 'cart',
|
||||
'dependencies' => [],
|
||||
],
|
||||
Methods::class => [
|
||||
'id' => 'methods',
|
||||
'dependencies' => [Login::class, RegisterOrLogin::class, Register::class, RFF::class],
|
||||
],
|
||||
RFF::class => [
|
||||
'id' => 'rff',
|
||||
'dependencies' => [Login::class, RegisterOrLogin::class, Register::class],
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user