Remove unnecessary statements

This commit is contained in:
2024-11-20 10:14:36 +01:00
parent 92f7787e74
commit 8fb7865bba
4 changed files with 1 additions and 5 deletions
@@ -18,7 +18,6 @@ use App\State\Accounting\AccountingStateProvider;
* perform corroboration of funds and store the Transactions into the system.
*/
#[API\ApiResource(
shortName: 'Accounting',
stateOptions: new Options(entityClass: Entity\Accounting::class),
provider: AccountingStateProvider::class,
processor: AccountingStateProcessor::class,
+1 -1
View File
@@ -12,7 +12,7 @@ use App\State\Gateway\GatewayStateProvider;
* These implementations make use of external or internal services to gather the funds that are inside a Transaction,
* perform corroboration of funds and store the Transactions into the system.
*/
#[API\ApiResource(shortName: 'Gateway')]
#[API\ApiResource()]
#[API\GetCollection(provider: GatewayStateProvider::class)]
#[API\Get(provider: GatewayStateProvider::class)]
class Gateway
-2
View File
@@ -2,7 +2,6 @@
namespace App\Entity;
use ApiPlatform\Metadata as API;
use App\Entity\Accounting\Transaction;
use App\Gateway\Wallet\StatementDirection;
use App\Repository\WalletStatementRepository;
@@ -18,7 +17,6 @@ use Doctrine\ORM\Mapping as ORM;
* a. Targets an User's Accounting, for which an incoming Statement will be created and which will hold the money until it is spent.\
* b. Originates from an User's Accounting via the Wallet Gateway, which will create an outgoing Statement with money financed from previous incoming statements.
*/
#[API\ApiResource()]
#[ORM\Entity(repositoryClass: WalletStatementRepository::class)]
class WalletStatement
{
-1
View File
@@ -5,7 +5,6 @@ namespace App\Gateway\Wallet;
use App\Entity\Accounting\Transaction;
use App\Entity\Gateway\Checkout;
use App\Entity\Money;
use App\Entity\WalletStatement;
use App\Gateway\ChargeType;
use App\Gateway\GatewayInterface;
use App\Library\Economy\MoneyService;