Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add routes for transactions.
James Colefa5d33caf51c
diff --git a/app/Api/V1/Controllers/Models/Transaction/ListController.php b/app/Api/V1/Controllers/Models/Transaction/ListController.phpindex 733b99dc64..ce9393db4a 100644--- a/app/Api/V1/Controllers/Models/Transaction/ListController.php+++ b/app/Api/V1/Controllers/Models/Transaction/ListController.php@@ -33,7 +33,9 @@ use FireflyIII\Transformers\PiggyBankEventTransformer;use FireflyIII\Transformers\TransactionLinkTransformer;use FireflyIII\User;use Illuminate\Http\JsonResponse;+use Illuminate\Pagination\LengthAwarePaginator;use Illuminate\Support\Collection;+use League\Fractal\Pagination\IlluminatePaginatorAdapter;use League\Fractal\Resource\Collection as FractalCollection;/**@@ -74,16 +76,25 @@ class ListController extends Controllerpublic function attachments(TransactionGroup $transactionGroup): JsonResponse{$manager = $this->getManager();- $attachments = new Collection;+ $pageSize = (int) app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;+ $collection = new Collection;foreach ($transactionGroup->transactionJournals as $transactionJournal) {- $attachments = $this->journalAPIRepository->getAttachments($transactionJournal)->merge($attachments);+ $collection = $this->journalAPIRepository->getAttachments($transactionJournal)->merge($collection);}+ $count = $collection->count();+ $attachments = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);++ // make paginator:+ $paginator = new LengthAwarePaginator($attachments, $count, $pageSize, $this->parameters->get('page'));+ $paginator->setPath(route('api.v1.transactions.attachments', [$transactionGroup->id]) . $this->buildParams());+/** @var AttachmentTransformer $transformer */$transformer = app(AttachmentTransformer::class);$transformer->setParameters($this->parameters);$resource = new FractalCollection($attachments, $transformer, 'attachments');+ $resource->setPaginator(new IlluminatePaginatorAdapter($paginator));return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);}@@ -98,16 +109,33 @@ class ListController extends Controllerpublic function piggyBankEvents(TransactionGroup $transactionGroup): JsonResponse{$manager = $this->getManager();- $events = new Collection;+ $collection = new Collection;+ $pageSize = (int) app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;foreach ($transactionGroup->transactionJournals as $transactionJournal) {- $events = $this->journalAPIRepository->getPiggyBankEvents($transactionJournal)->merge($events);+ $collection = $this->journalAPIRepository->getPiggyBankEvents($transactionJournal)->merge($collection);}+ $count = $collection->count();+ $events = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);+++ // make paginator:+ $paginator = new LengthAwarePaginator($events, $count, $pageSize, $this->parameters->get('page'));+ $paginator->setPath(route('api.v1.transactions.piggy_bank_events', [$transactionGroup->id]) . $this->buildParams());/** @var PiggyBankEventTransformer $transformer */$transformer = app(PiggyBankEventTransformer::class);$transformer->setParameters($this->parameters);$resource = new FractalCollection($events, $transformer, 'piggy_bank_events');+ $resource->setPaginator(new IlluminatePaginatorAdapter($paginator));++++// /** @var PiggyBankEventTransformer $transformer */+// $transformer = app(PiggyBankEventTransformer::class);+// $transformer->setParameters($this->parameters);+//+// $resource = new FractalCollection($events, $transformer, 'piggy_bank_events');return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);}@@ -122,13 +150,21 @@ class ListController extends Controllerpublic function transactionLinks(TransactionJournal $transactionJournal): JsonResponse{$manager = $this->getManager();- $journalLinks = $this->journalAPIRepository->getJournalLinks($transactionJournal);+ $collection = $this->journalAPIRepository->getJournalLinks($transactionJournal);+ $pageSize = (int) app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;+ $count = $collection->count();+ $journalLinks = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);++ // make paginator:+ $paginator = new LengthAwarePaginator($journalLinks, $count, $pageSize, $this->parameters->get('page'));+ $paginator->setPath(route('api.v1.transaction-journals.transaction_links', [$transactionJournal->id]) . $this->buildParams());/** @var TransactionLinkTransformer $transformer */$transformer = app(TransactionLinkTransformer::class);$transformer->setParameters($this->parameters);$resource = new FractalCollection($journalLinks, $transformer, 'transaction_links');+ $resource->setPaginator(new IlluminatePaginatorAdapter($paginator));return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);}diff --git a/app/Api/V1/Controllers/Models/Transaction/StoreController.php b/app/Api/V1/Controllers/Models/Transaction/StoreController.phpindex a1990926a7..fb31cea302 100644--- a/app/Api/V1/Controllers/Models/Transaction/StoreController.php+++ b/app/Api/V1/Controllers/Models/Transaction/StoreController.php@@ -23,7 +23,7 @@ namespace FireflyIII\Api\V1\Controllers\Models\Transaction;use FireflyIII\Api\V1\Controllers\Controller;-use FireflyIII\Api\V1\Requests\TransactionStoreRequest;+use FireflyIII\Api\V1\Requests\Models\Transaction\StoreRequest;use FireflyIII\Events\StoredTransactionGroup;use FireflyIII\Exceptions\DuplicateTransactionException;use FireflyIII\Exceptions\FireflyException;@@ -74,12 +74,12 @@ class StoreController extends Controller/*** Store a new transaction.*- * @param TransactionStoreRequest $request+ * @param StoreRequest $request** @return JsonResponse* @throws FireflyException|ValidationException*/- public function store(TransactionStoreRequest $request): JsonResponse+ public function store(StoreRequest $request): JsonResponse{Log::debug('Now in API StoreController::store()');$data = $request->getAll();diff --git a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php b/app/Api/V1/Controllers/Models/Transaction/UpdateController.phpindex 9d719c1a27..0de76ce4fe 100644--- a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php+++ b/app/Api/V1/Controllers/Models/Transaction/UpdateController.php@@ -23,7 +23,7 @@ namespace FireflyIII\Api\V1\Controllers\Models\Transaction;use FireflyIII\Api\V1\Controllers\Controller;-use FireflyIII\Api\V1\Requests\TransactionUpdateRequest;+use FireflyIII\Api\V1\Requests\Models\Transaction\UpdateRequest;use FireflyIII\Events\UpdatedTransactionGroup;use FireflyIII\Helpers\Collector\GroupCollectorInterface;use FireflyIII\Models\TransactionGroup;@@ -67,12 +67,12 @@ class UpdateController extends Controller/*** Update a transaction.*- * @param TransactionUpdateRequest $request+ * @param UpdateRequest $request* @param TransactionGroup $transactionGroup** @return JsonResponse*/- public function update(TransactionUpdateRequest $request, TransactionGroup $transactionGroup): JsonResponse+ public function update(UpdateRequest $request, TransactionGroup $transactionGroup): JsonResponse{Log::debug('Now in update routine.');$data = $request->getAll();diff --git a/app/Api/V1/Requests/todo/TransactionStoreRequest.php b/app/Api/V1/Requests/Models/Transaction/StoreRequest.phpsimilarity index 99%rename from app/Api/V1/Requests/todo/TransactionStoreRequest.phprename to app/Api/V1/Requests/Models/Transaction/StoreRequest.phpindex 4a28e5a99b..c6ab9280e2 100644--- a/app/Api/V1/Requests/todo/TransactionStoreRequest.php+++ b/app/Api/V1/Requests/Models/Transaction/StoreRequest.php@@ -22,7 +22,7 @@declare(strict_types=1);-namespace FireflyIII\Api\V1\Requests;+namespace FireflyIII\Api\V1\Requests\Models\Transaction;use FireflyIII\Rules\BelongsUser;use FireflyIII\Rules\IsBoolean;@@ -39,9 +39,9 @@ use Illuminate\Validation\Validator;use Log;/**- * Class TransactionStoreRequest+ * Class StoreRequest*/-class TransactionStoreRequest extends FormRequest+class StoreRequest extends FormRequest{use TransactionValidation, GroupValidation, CurrencyValidation, ConvertsDataTypes, ChecksLogin, AppendsLocationData;diff --git a/app/Api/V1/Requests/todo/TransactionUpdateRequest.php b/app/Api/V1/Requests/Models/Transaction/UpdateRequest.phpsimilarity index 99%rename from app/Api/V1/Requests/todo/TransactionUpdateRequest.phprename to app/Api/V1/Requests/Models/Transaction/UpdateRequest.phpindex 449bd452ab..a70d13d48f 100644--- a/app/Api/V1/Requests/todo/TransactionUpdateRequest.php+++ b/app/Api/V1/Requests/Models/Transaction/UpdateRequest.php@@ -22,7 +22,7 @@declare(strict_types=1);-namespace FireflyIII\Api\V1\Requests;+namespace FireflyIII\Api\V1\Requests\Models\Transaction;use FireflyIII\Models\TransactionGroup;use FireflyIII\Rules\BelongsUser;@@ -37,9 +37,9 @@ use Illuminate\Validation\Validator;use Log;/**- * Class TransactionUpdateRequest+ * Class UpdateRequest*/-class TransactionUpdateRequest extends FormRequest+class UpdateRequest extends FormRequest{use TransactionValidation, GroupValidation, ConvertsDataTypes, ChecksLogin;diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.phpindex e8da32c3a0..5bbdd544cf 100644--- a/app/Models/TransactionJournal.php+++ b/app/Models/TransactionJournal.php@@ -113,6 +113,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;* @method static \Illuminate\Database\Query\Builder|TransactionJournal withTrashed()* @method static \Illuminate\Database\Query\Builder|TransactionJournal withoutTrashed()* @mixin Eloquent+ * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Location[] $locations+ * @property-read int|null $locations_count*/class TransactionJournal extends Model{diff --git a/app/Transformers/TransactionLinkTransformer.php b/app/Transformers/TransactionLinkTransformer.phpindex c4c57e810e..7cdb4dd2ae 100644--- a/app/Transformers/TransactionLinkTransformer.php+++ b/app/Transformers/TransactionLinkTransformer.php@@ -54,13 +54,14 @@ class TransactionLinkTransformer extends AbstractTransformerpublic function transform(TransactionJournalLink $link): array{$notes = $this->repository->getLinkNoteText($link);+return [- 'id' => (int)$link->id,+ 'id' => (string)$link->id,'created_at' => $link->created_at->toAtomString(),'updated_at' => $link->updated_at->toAtomString(),- 'inward_id' => (int) $link->source_id,- 'outward_id' => (int) $link->destination_id,- 'link_type_id' => (int) $link->link_type_id,+ 'inward_id' => (string)$link->source_id,+ 'outward_id' => (string)$link->destination_id,+ 'link_type_id' => (string)$link->link_type_id,'notes' => '' === $notes ? null : $notes,'links' => [[diff --git a/composer.lock b/composer.lockindex 0298399049..3ea7a15e67 100644--- a/composer.lock+++ b/composer.lock@@ -1641,16 +1641,16 @@},{"name": "laravel/framework",- "version": "v8.29.0",+ "version": "v8.31.0","source": {"type": "git","url": "https://github.com/laravel/framework.git",- "reference": "d2eba352b3b3a3c515b18c5726b373fe5026733e"+ "reference": "2aa5c2488d25178ebc097052c7897a0e463ddc35"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/framework/zipball/d2eba352b3b3a3c515b18c5726b373fe5026733e",- "reference": "d2eba352b3b3a3c515b18c5726b373fe5026733e",+ "url": "https://api.github.com/repos/laravel/framework/zipball/2aa5c2488d25178ebc097052c7897a0e463ddc35",+ "reference": "2aa5c2488d25178ebc097052c7897a0e463ddc35","shasum": ""},"require": {@@ -1805,20 +1805,20 @@"issues": "https://github.com/laravel/framework/issues","source": "https://github.com/laravel/framework"},- "time": "2021-02-23T14:27:41+00:00"+ "time": "2021-03-04T15:22:36+00:00"},{"name": "laravel/passport",- "version": "v10.1.1",+ "version": "v10.1.2","source": {"type": "git","url": "https://github.com/laravel/passport.git",- "reference": "2ed01909228b049f6ea0aa2d4b0ae78d3b27bee3"+ "reference": "9f1a5d56eb609250104afc38cf407f7c2520cda3"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/passport/zipball/2ed01909228b049f6ea0aa2d4b0ae78d3b27bee3",- "reference": "2ed01909228b049f6ea0aa2d4b0ae78d3b27bee3",+ "url": "https://api.github.com/repos/laravel/passport/zipball/9f1a5d56eb609250104afc38cf407f7c2520cda3",+ "reference": "9f1a5d56eb609250104afc38cf407f7c2520cda3","shasum": ""},"require": {@@ -1837,7 +1837,7 @@"league/oauth2-server": "^8.2","nyholm/psr7": "^1.3","php": "^7.3|^8.0",- "phpseclib/phpseclib": "^3.0",+ "phpseclib/phpseclib": "^2.0|^3.0","symfony/psr-http-message-bridge": "^2.0"},"require-dev": {@@ -1882,7 +1882,7 @@"issues": "https://github.com/laravel/passport/issues","source": "https://github.com/laravel/passport"},- "time": "2021-02-23T20:45:29+00:00"+ "time": "2021-03-02T16:40:00+00:00"},{"name": "laravel/ui",@@ -3638,27 +3638,22 @@},{"name": "psr/container",- "version": "1.0.0",+ "version": "1.1.1","source": {"type": "git","url": "https://github.com/php-fig/container.git",- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"+ "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",+ "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",+ "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf","shasum": ""},"require": {- "php": ">=5.3.0"+ "php": ">=7.2.0"},"type": "library",- "extra": {- "branch-alias": {- "dev-master": "1.0.x-dev"- }- },"autoload": {"psr-4": {"Psr\\Container\\": "src/"@@ -3671,7 +3666,7 @@"authors": [{"name": "PHP-FIG",- "homepage": "http://www.php-fig.org/"+ "homepage": "https://www.php-fig.org/"}],"description": "Common Container Interface (PHP FIG PSR-11)",@@ -3685,9 +3680,9 @@],"support": {"issues": "https://github.com/php-fig/container/issues",- "source": "https://github.com/php-fig/container/tree/master"+ "source": "https://github.com/php-fig/container/tree/1.1.1"},- "time": "2017-02-14T16:28:37+00:00"+ "time": "2021-03-05T17:36:06+00:00"},{"name": "psr/event-dispatcher",@@ -4292,16 +4287,16 @@},{"name": "swiftmailer/swiftmailer",- "version": "v6.2.5",+ "version": "v6.2.6","source": {"type": "git","url": "https://github.com/swiftmailer/swiftmailer.git",- "reference": "698a6a9f54d7eb321274de3ad19863802c879fb7"+ "reference": "d2791ff0b73247cdc2096b14f5580aba40c12bff"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/698a6a9f54d7eb321274de3ad19863802c879fb7",- "reference": "698a6a9f54d7eb321274de3ad19863802c879fb7",+ "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/d2791ff0b73247cdc2096b14f5580aba40c12bff",+ "reference": "d2791ff0b73247cdc2096b14f5580aba40c12bff","shasum": ""},"require": {@@ -4351,7 +4346,7 @@],"support": {"issues": "https://github.com/swiftmailer/swiftmailer/issues",- "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.2.5"+ "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.2.6"},"funding": [{@@ -4363,20 +4358,20 @@"type": "tidelift"}],- "time": "2021-01-12T09:35:59+00:00"+ "time": "2021-03-05T12:08:49+00:00"},{"name": "symfony/console",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/console.git",- "reference": "89d4b176d12a2946a1ae4e34906a025b7b6b135a"+ "reference": "d6d0cc30d8c0fda4e7b213c20509b0159a8f4556"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/console/zipball/89d4b176d12a2946a1ae4e34906a025b7b6b135a",- "reference": "89d4b176d12a2946a1ae4e34906a025b7b6b135a",+ "url": "https://api.github.com/repos/symfony/console/zipball/d6d0cc30d8c0fda4e7b213c20509b0159a8f4556",+ "reference": "d6d0cc30d8c0fda4e7b213c20509b0159a8f4556","shasum": ""},"require": {@@ -4444,7 +4439,7 @@"terminal"],"support": {- "source": "https://github.com/symfony/console/tree/v5.2.3"+ "source": "https://github.com/symfony/console/tree/v5.2.4"},"funding": [{@@ -4460,11 +4455,11 @@"type": "tidelift"}],- "time": "2021-01-28T22:06:19+00:00"+ "time": "2021-02-23T10:08:49+00:00"},{"name": "symfony/css-selector",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/css-selector.git",@@ -4509,7 +4504,7 @@"description": "Converts CSS selectors to XPath expressions","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/css-selector/tree/v5.2.3"+ "source": "https://github.com/symfony/css-selector/tree/v5.2.4"},"funding": [{@@ -4596,16 +4591,16 @@},{"name": "symfony/error-handler",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/error-handler.git",- "reference": "48f18b3609e120ea66d59142c23dc53e9562c26d"+ "reference": "b547d3babcab5c31e01de59ee33e9d9c1421d7d0"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/error-handler/zipball/48f18b3609e120ea66d59142c23dc53e9562c26d",- "reference": "48f18b3609e120ea66d59142c23dc53e9562c26d",+ "url": "https://api.github.com/repos/symfony/error-handler/zipball/b547d3babcab5c31e01de59ee33e9d9c1421d7d0",+ "reference": "b547d3babcab5c31e01de59ee33e9d9c1421d7d0","shasum": ""},"require": {@@ -4645,7 +4640,7 @@"description": "Provides tools to manage errors and ease debugging PHP code","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/error-handler/tree/v5.2.3"+ "source": "https://github.com/symfony/error-handler/tree/v5.2.4"},"funding": [{@@ -4661,20 +4656,20 @@"type": "tidelift"}],- "time": "2021-01-28T22:06:19+00:00"+ "time": "2021-02-11T08:21:20+00:00"},{"name": "symfony/event-dispatcher",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/event-dispatcher.git",- "reference": "4f9760f8074978ad82e2ce854dff79a71fe45367"+ "reference": "d08d6ec121a425897951900ab692b612a61d6240"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4f9760f8074978ad82e2ce854dff79a71fe45367",- "reference": "4f9760f8074978ad82e2ce854dff79a71fe45367",+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d08d6ec121a425897951900ab692b612a61d6240",+ "reference": "d08d6ec121a425897951900ab692b612a61d6240","shasum": ""},"require": {@@ -4730,7 +4725,7 @@"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/event-dispatcher/tree/v5.2.3"+ "source": "https://github.com/symfony/event-dispatcher/tree/v5.2.4"},"funding": [{@@ -4746,7 +4741,7 @@"type": "tidelift"}],- "time": "2021-01-27T10:36:42+00:00"+ "time": "2021-02-18T17:12:37+00:00"},{"name": "symfony/event-dispatcher-contracts",@@ -4829,16 +4824,16 @@},{"name": "symfony/finder",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/finder.git",- "reference": "4adc8d172d602008c204c2e16956f99257248e03"+ "reference": "0d639a0943822626290d169965804f79400e6a04"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/finder/zipball/4adc8d172d602008c204c2e16956f99257248e03",- "reference": "4adc8d172d602008c204c2e16956f99257248e03",+ "url": "https://api.github.com/repos/symfony/finder/zipball/0d639a0943822626290d169965804f79400e6a04",+ "reference": "0d639a0943822626290d169965804f79400e6a04","shasum": ""},"require": {@@ -4870,7 +4865,7 @@"description": "Finds files and directories via an intuitive fluent interface","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/finder/tree/v5.2.3"+ "source": "https://github.com/symfony/finder/tree/v5.2.4"},"funding": [{@@ -4886,7 +4881,7 @@"type": "tidelift"}],- "time": "2021-01-28T22:06:19+00:00"+ "time": "2021-02-15T18:55:04+00:00"},{"name": "symfony/http-client-contracts",@@ -4969,16 +4964,16 @@},{"name": "symfony/http-foundation",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/http-foundation.git",- "reference": "20c554c0f03f7cde5ce230ed248470cccbc34c36"+ "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/http-foundation/zipball/20c554c0f03f7cde5ce230ed248470cccbc34c36",- "reference": "20c554c0f03f7cde5ce230ed248470cccbc34c36",+ "url": "https://api.github.com/repos/symfony/http-foundation/zipball/54499baea7f7418bce7b5ec92770fd0799e8e9bf",+ "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf","shasum": ""},"require": {@@ -5022,7 +5017,7 @@"description": "Defines an object-oriented layer for the HTTP specification","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/http-foundation/tree/v5.2.3"+ "source": "https://github.com/symfony/http-foundation/tree/v5.2.4"},"funding": [{@@ -5038,20 +5033,20 @@"type": "tidelift"}],- "time": "2021-02-03T04:42:09+00:00"+ "time": "2021-02-25T17:16:57+00:00"},{"name": "symfony/http-kernel",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/http-kernel.git",- "reference": "89bac04f29e7b0b52f9fa6a4288ca7a8f90a1a05"+ "reference": "c452dbe4f385f030c3957821bf921b13815d6140"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/http-kernel/zipball/89bac04f29e7b0b52f9fa6a4288ca7a8f90a1a05",- "reference": "89bac04f29e7b0b52f9fa6a4288ca7a8f90a1a05",+ "url": "https://api.github.com/repos/symfony/http-kernel/zipball/c452dbe4f385f030c3957821bf921b13815d6140",+ "reference": "c452dbe4f385f030c3957821bf921b13815d6140","shasum": ""},"require": {@@ -5086,7 +5081,7 @@"psr/log-implementation": "1.0"},"require-dev": {- "psr/cache": "~1.0",+ "psr/cache": "^1.0|^2.0|^3.0","symfony/browser-kit": "^4.4|^5.0","symfony/config": "^5.0","symfony/console": "^4.4|^5.0",@@ -5134,7 +5129,7 @@"description": "Provides a structured process for converting a Request into a Response","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/http-kernel/tree/v5.2.3"+ "source": "https://github.com/symfony/http-kernel/tree/v5.2.4"},"funding": [{@@ -5150,20 +5145,20 @@"type": "tidelift"}],- "time": "2021-02-03T04:51:58+00:00"+ "time": "2021-03-04T18:05:55+00:00"},{"name": "symfony/mime",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/mime.git",- "reference": "7dee6a43493f39b51ff6c5bb2bd576fe40a76c86"+ "reference": "5155d2fe14ef1eb150e3bdbbc1ec1455df95e9cd"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/mime/zipball/7dee6a43493f39b51ff6c5bb2bd576fe40a76c86",- "reference": "7dee6a43493f39b51ff6c5bb2bd576fe40a76c86",+ "url": "https://api.github.com/repos/symfony/mime/zipball/5155d2fe14ef1eb150e3bdbbc1ec1455df95e9cd",+ "reference": "5155d2fe14ef1eb150e3bdbbc1ec1455df95e9cd","shasum": ""},"require": {@@ -5216,7 +5211,7 @@"mime-type"],"support": {- "source": "https://github.com/symfony/mime/tree/v5.2.3"+ "source": "https://github.com/symfony/mime/tree/v5.2.4"},"funding": [{@@ -5232,7 +5227,7 @@"type": "tidelift"}],- "time": "2021-02-02T06:10:15+00:00"+ "time": "2021-02-15T18:55:04+00:00"},{"name": "symfony/polyfill-ctype",@@ -5965,7 +5960,7 @@},{"name": "symfony/process",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/process.git",@@ -6007,7 +6002,7 @@"description": "Executes commands in sub-processes","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/process/tree/v5.2.3"+ "source": "https://github.com/symfony/process/tree/v5.2.4"},"funding": [{@@ -6115,16 +6110,16 @@},{"name": "symfony/routing",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/routing.git",- "reference": "348b5917e56546c6d96adbf21d7f92c9ef563661"+ "reference": "cafa138128dfd6ab6be1abf6279169957b34f662"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/routing/zipball/348b5917e56546c6d96adbf21d7f92c9ef563661",- "reference": "348b5917e56546c6d96adbf21d7f92c9ef563661",+ "url": "https://api.github.com/repos/symfony/routing/zipball/cafa138128dfd6ab6be1abf6279169957b34f662",+ "reference": "cafa138128dfd6ab6be1abf6279169957b34f662","shasum": ""},"require": {@@ -6185,7 +6180,7 @@"url"],"support": {- "source": "https://github.com/symfony/routing/tree/v5.2.3"+ "source": "https://github.com/symfony/routing/tree/v5.2.4"},"funding": [{@@ -6201,7 +6196,7 @@"type": "tidelift"}],- "time": "2021-01-27T10:15:41+00:00"+ "time": "2021-02-22T15:48:39+00:00"},{"name": "symfony/service-contracts",@@ -6284,16 +6279,16 @@},{"name": "symfony/string",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/string.git",- "reference": "c95468897f408dd0aca2ff582074423dd0455122"+ "reference": "4e78d7d47061fa183639927ec40d607973699609"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/string/zipball/c95468897f408dd0aca2ff582074423dd0455122",- "reference": "c95468897f408dd0aca2ff582074423dd0455122",+ "url": "https://api.github.com/repos/symfony/string/zipball/4e78d7d47061fa183639927ec40d607973699609",+ "reference": "4e78d7d47061fa183639927ec40d607973699609","shasum": ""},"require": {@@ -6347,7 +6342,7 @@"utf8"],"support": {- "source": "https://github.com/symfony/string/tree/v5.2.3"+ "source": "https://github.com/symfony/string/tree/v5.2.4"},"funding": [{@@ -6363,20 +6358,20 @@"type": "tidelift"}],- "time": "2021-01-25T15:14:59+00:00"+ "time": "2021-02-16T10:20:28+00:00"},{"name": "symfony/translation",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/translation.git",- "reference": "c021864d4354ee55160ddcfd31dc477a1bc77949"+ "reference": "74b0353ab34ff4cca827a2cf909e325d96815e60"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/translation/zipball/c021864d4354ee55160ddcfd31dc477a1bc77949",- "reference": "c021864d4354ee55160ddcfd31dc477a1bc77949",+ "url": "https://api.github.com/repos/symfony/translation/zipball/74b0353ab34ff4cca827a2cf909e325d96815e60",+ "reference": "74b0353ab34ff4cca827a2cf909e325d96815e60","shasum": ""},"require": {@@ -6393,7 +6388,7 @@"symfony/yaml": "<4.4"},"provide": {- "symfony/translation-implementation": "2.0"+ "symfony/translation-implementation": "2.3"},"require-dev": {"psr/log": "~1.0",@@ -6440,7 +6435,7 @@"description": "Provides tools to internationalize your application","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/translation/tree/v5.2.3"+ "source": "https://github.com/symfony/translation/tree/v5.2.4"},"funding": [{@@ -6456,7 +6451,7 @@"type": "tidelift"}],- "time": "2021-01-27T10:15:41+00:00"+ "time": "2021-03-04T15:41:09+00:00"},{"name": "symfony/translation-contracts",@@ -6538,16 +6533,16 @@},{"name": "symfony/var-dumper",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/var-dumper.git",- "reference": "72ca213014a92223a5d18651ce79ef441c12b694"+ "reference": "6a81fec0628c468cf6d5c87a4d003725e040e223"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/72ca213014a92223a5d18651ce79ef441c12b694",- "reference": "72ca213014a92223a5d18651ce79ef441c12b694",+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6a81fec0628c468cf6d5c87a4d003725e040e223",+ "reference": "6a81fec0628c468cf6d5c87a4d003725e040e223","shasum": ""},"require": {@@ -6606,7 +6601,7 @@"dump"],"support": {- "source": "https://github.com/symfony/var-dumper/tree/v5.2.3"+ "source": "https://github.com/symfony/var-dumper/tree/v5.2.4"},"funding": [{@@ -6622,7 +6617,7 @@"type": "tidelift"}],- "time": "2021-01-27T10:15:41+00:00"+ "time": "2021-02-18T23:11:19+00:00"},{"name": "tijsverkoyen/css-to-inline-styles",@@ -7422,16 +7417,16 @@},{"name": "composer/composer",- "version": "2.0.9",+ "version": "2.0.11","source": {"type": "git","url": "https://github.com/composer/composer.git",- "reference": "591c2c155cac0d2d7f34af41d3b1e29bcbfc685e"+ "reference": "a5a5632da0b1c2d6fa9a3b65f1f4e90d1f04abb9"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/composer/composer/zipball/591c2c155cac0d2d7f34af41d3b1e29bcbfc685e",- "reference": "591c2c155cac0d2d7f34af41d3b1e29bcbfc685e",+ "url": "https://api.github.com/repos/composer/composer/zipball/a5a5632da0b1c2d6fa9a3b65f1f4e90d1f04abb9",+ "reference": "a5a5632da0b1c2d6fa9a3b65f1f4e90d1f04abb9","shasum": ""},"require": {@@ -7499,7 +7494,7 @@"support": {"irc": "irc://irc.freenode.org/composer","issues": "https://github.com/composer/composer/issues",- "source": "https://github.com/composer/composer/tree/2.0.9"+ "source": "https://github.com/composer/composer/tree/2.0.11"},"funding": [{@@ -7515,7 +7510,7 @@"type": "tidelift"}],- "time": "2021-01-27T15:09:27+00:00"+ "time": "2021-02-24T13:57:23+00:00"},{"name": "composer/semver",@@ -8834,16 +8829,16 @@},{"name": "phar-io/version",- "version": "3.0.4",+ "version": "3.1.0","source": {"type": "git","url": "https://github.com/phar-io/version.git",- "reference": "e4782611070e50613683d2b9a57730e9a3ba5451"+ "reference": "bae7c545bef187884426f042434e561ab1ddb182"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/phar-io/version/zipball/e4782611070e50613683d2b9a57730e9a3ba5451",- "reference": "e4782611070e50613683d2b9a57730e9a3ba5451",+ "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182",+ "reference": "bae7c545bef187884426f042434e561ab1ddb182","shasum": ""},"require": {@@ -8879,9 +8874,9 @@"description": "Library for handling version information and constraints","support": {"issues": "https://github.com/phar-io/version/issues",- "source": "https://github.com/phar-io/version/tree/3.0.4"+ "source": "https://github.com/phar-io/version/tree/3.1.0"},- "time": "2020-12-13T23:18:30+00:00"+ "time": "2021-02-23T14:00:09+00:00"},{"name": "phpdocumentor/reflection-common",@@ -9696,12 +9691,12 @@"source": {"type": "git","url": "https://github.com/Roave/SecurityAdvisories.git",- "reference": "7263d7d73a4de68760e05f3eda5eee73b59f0f6d"+ "reference": "0745f820eed6cb92603ca44a9c137ff8ce315e86"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/7263d7d73a4de68760e05f3eda5eee73b59f0f6d",- "reference": "7263d7d73a4de68760e05f3eda5eee73b59f0f6d",+ "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/0745f820eed6cb92603ca44a9c137ff8ce315e86",+ "reference": "0745f820eed6cb92603ca44a9c137ff8ce315e86","shasum": ""},"conflict": {@@ -9719,6 +9714,7 @@"barrelstrength/sprout-forms": "<3.9","baserproject/basercms": ">=4,<=4.3.6|>=4.4,<4.4.1","bolt/bolt": "<3.7.1",+ "bolt/core": "<4.1.13","brightlocal/phpwhois": "<=4.2.5","buddypress/buddypress": "<5.1.2","bugsnag/bugsnag-laravel": ">=2,<2.0.2",@@ -9766,6 +9762,7 @@"ezsystems/platform-ui-assets-bundle": ">=4.2,<4.2.3","ezsystems/repository-forms": ">=2.3,<2.3.2.1","ezyang/htmlpurifier": "<4.1.1",+ "facade/ignition": "<=2.5.1,>=2.0|<=1.16.13","firebase/php-jwt": "<2","flarum/sticky": ">=0.1-beta.14,<=0.1-beta.15","flarum/tags": "<=0.1-beta.13",@@ -9785,7 +9782,7 @@"guzzlehttp/guzzle": ">=4-rc.2,<4.2.4|>=5,<5.3.1|>=6,<6.2.1","illuminate/auth": ">=4,<4.0.99|>=4.1,<=4.1.31|>=4.2,<=4.2.22|>=5,<=5.0.35|>=5.1,<=5.1.46|>=5.2,<=5.2.45|>=5.3,<=5.3.31|>=5.4,<=5.4.36|>=5.5,<5.5.10","illuminate/cookie": ">=4,<=4.0.11|>=4.1,<=4.1.99999|>=4.2,<=4.2.99999|>=5,<=5.0.99999|>=5.1,<=5.1.99999|>=5.2,<=5.2.99999|>=5.3,<=5.3.99999|>=5.4,<=5.4.99999|>=5.5,<=5.5.49|>=5.6,<=5.6.99999|>=5.7,<=5.7.99999|>=5.8,<=5.8.99999|>=6,<6.18.31|>=7,<7.22.4",- "illuminate/database": "<6.20.12|>=7,<7.30.3|>=8,<8.22.1",+ "illuminate/database": "<6.20.14|>=7,<7.30.4|>=8,<8.24","illuminate/encryption": ">=4,<=4.0.11|>=4.1,<=4.1.31|>=4.2,<=4.2.22|>=5,<=5.0.35|>=5.1,<=5.1.46|>=5.2,<=5.2.45|>=5.3,<=5.3.31|>=5.4,<=5.4.36|>=5.5,<5.5.40|>=5.6,<5.6.15","illuminate/view": ">=7,<7.1.2","ivankristianto/phpwhois": "<=4.3",@@ -9796,7 +9793,7 @@"kitodo/presentation": "<3.1.2","kreait/firebase-php": ">=3.2,<3.8.1","la-haute-societe/tcpdf": "<6.2.22",- "laravel/framework": "<6.20.12|>=7,<7.30.3|>=8,<8.22.1",+ "laravel/framework": "<6.20.14|>=7,<7.30.4|>=8,<8.24","laravel/socialite": ">=1,<1.0.99|>=2,<2.0.10","league/commonmark": "<0.18.3","librenms/librenms": "<1.53",@@ -9818,7 +9815,7 @@"october/backend": ">=1.0.319,<1.0.470","october/cms": "= 1.0.469|>=1.0.319,<1.0.469","october/october": ">=1.0.319,<1.0.466",- "october/rain": ">=1.0.319,<1.0.468",+ "october/rain": "<1.0.472|>=1.1,<1.1.2","onelogin/php-saml": "<2.10.4","oneup/uploader-bundle": "<1.9.3|>=2,<2.1.5","openid/php-openid": "<2.3",@@ -9842,7 +9839,7 @@"phpunit/phpunit": ">=4.8.19,<4.8.28|>=5.0.10,<5.6.3","phpwhois/phpwhois": "<=4.2.5","phpxmlrpc/extras": "<0.6.1",- "pimcore/pimcore": "<6.3",+ "pimcore/pimcore": "<6.8.8","pocketmine/pocketmine-mp": "<3.15.4","prestashop/autoupgrade": ">=4,<4.10.1","prestashop/contactform": ">1.0.1,<4.3",@@ -9862,7 +9859,7 @@"sensiolabs/connect": "<4.2.3","serluck/phpwhois": "<=4.2.6","shopware/core": "<=6.3.4",- "shopware/platform": "<=6.3.4",+ "shopware/platform": "<=6.3.5","shopware/shopware": "<5.6.9","silverstripe/admin": ">=1.0.3,<1.0.4|>=1.1,<1.1.1","silverstripe/assets": ">=1,<1.4.7|>=1.5,<1.5.2",@@ -9882,7 +9879,7 @@"simplesamlphp/simplesamlphp-module-infocard": "<1.0.1","simplito/elliptic-php": "<1.0.6","slim/slim": "<2.6",- "smarty/smarty": "<3.1.33",+ "smarty/smarty": "<3.1.39","socalnick/scn-social-auth": "<1.15.2","socialiteproviders/steam": "<1.1","spoonity/tcpdf": "<6.2.22",@@ -9943,6 +9940,7 @@"ua-parser/uap-php": "<3.8","usmanhalalit/pixie": "<1.0.3|>=2,<2.0.2","verot/class.upload.php": "<=1.0.3|>=2,<=2.0.4",+ "vrana/adminer": "<4.7.9","wallabag/tcpdf": "<6.2.22","willdurand/js-translation-bundle": "<2.1.1","yii2mod/yii2-cms": "<1.9.2",@@ -10013,7 +10011,7 @@"type": "tidelift"}],- "time": "2021-01-29T18:18:11+00:00"+ "time": "2021-03-03T23:02:20+00:00"},{"name": "sebastian/cli-parser",@@ -11092,16 +11090,16 @@},{"name": "symfony/debug",- "version": "v4.4.19",+ "version": "v4.4.20","source": {"type": "git","url": "https://github.com/symfony/debug.git",- "reference": "af4987aa4a5630e9615be9d9c3ed1b0f24ca449c"+ "reference": "157bbec4fd773bae53c5483c50951a5530a2cc16"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/debug/zipball/af4987aa4a5630e9615be9d9c3ed1b0f24ca449c",- "reference": "af4987aa4a5630e9615be9d9c3ed1b0f24ca449c",+ "url": "https://api.github.com/repos/symfony/debug/zipball/157bbec4fd773bae53c5483c50951a5530a2cc16",+ "reference": "157bbec4fd773bae53c5483c50951a5530a2cc16","shasum": ""},"require": {@@ -11141,7 +11139,7 @@"description": "Provides tools to ease debugging PHP code","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/debug/tree/v4.4.19"+ "source": "https://github.com/symfony/debug/tree/v4.4.20"},"funding": [{@@ -11157,20 +11155,20 @@"type": "tidelift"}],- "time": "2021-01-27T09:09:26+00:00"+ "time": "2021-01-28T16:54:48+00:00"},{"name": "symfony/filesystem",- "version": "v5.2.3",+ "version": "v5.2.4","source": {"type": "git","url": "https://github.com/symfony/filesystem.git",- "reference": "262d033b57c73e8b59cd6e68a45c528318b15038"+ "reference": "710d364200997a5afde34d9fe57bd52f3cc1e108"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/filesystem/zipball/262d033b57c73e8b59cd6e68a45c528318b15038",- "reference": "262d033b57c73e8b59cd6e68a45c528318b15038",+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/710d364200997a5afde34d9fe57bd52f3cc1e108",+ "reference": "710d364200997a5afde34d9fe57bd52f3cc1e108","shasum": ""},"require": {@@ -11203,7 +11201,7 @@"description": "Provides basic utilities for the filesystem","homepage": "https://symfony.com","support": {- "source": "https://github.com/symfony/filesystem/tree/v5.2.3"+ "source": "https://github.com/symfony/filesystem/tree/v5.2.4"},"funding": [{@@ -11219,7 +11217,7 @@"type": "tidelift"}],- "time": "2021-01-27T10:01:46+00:00"+ "time": "2021-02-12T10:38:38+00:00"},{"name": "thecodingmachine/phpstan-strict-rules",diff --git a/routes/api.php b/routes/api.phpindex a9480318e0..abbefb2746 100644--- a/routes/api.php+++ b/routes/api.php@@ -397,7 +397,7 @@ Route::group('as' => 'api.v1.transaction-journals.',],static function () {Route::get('{tj}', ['uses' => 'ShowController@showJournal', 'as' => 'show']);- Route::delete('{transactionGroup}/{tj}', ['uses' => 'DestroyController@destroyJournal', 'as' => 'delete']);+ Route::delete('{tj}', ['uses' => 'DestroyController@destroyJournal', 'as' => 'delete']);Route::get('{tj}/links', ['uses' => 'ListController@transactionLinks', 'as' => 'transaction_links']);}