Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Mapping #37

Merged
merged 38 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
083a4fc
Move Project to own entity namespace
subiabre Dec 5, 2024
68c70ef
Move User to own entity namespace
subiabre Dec 5, 2024
2813c07
Fix namespaces in pumps
subiabre Dec 5, 2024
61d53b6
Update namespaces in auth
subiabre Dec 5, 2024
f60c32e
Update accounting owner setting code
subiabre Dec 5, 2024
c52c199
Update accounting api resource output class
subiabre Dec 5, 2024
ff1b812
Add dedicated project api resource class
subiabre Dec 5, 2024
6dbd8b1
Add dependency on jolicode/automapper
subiabre Dec 9, 2024
3d1edf6
Decorated auto mapper service
subiabre Dec 9, 2024
6ec810c
Add generic api resource state provider
subiabre Dec 9, 2024
2683a87
Add dedicated service for accountng
subiabre Dec 9, 2024
68e3dd3
Fix accounting owner setting only for non null owners
subiabre Dec 9, 2024
a9675e6
Update Accounting api resource
subiabre Dec 9, 2024
f8214a3
Middle object accounting owner no longer necessary
subiabre Dec 9, 2024
402b0f0
Fix accounting mapping
subiabre Dec 9, 2024
4a22157
Update namespaces in tests
subiabre Dec 9, 2024
1e42c17
Fix namespace in wallet transaction listener
subiabre Dec 9, 2024
53a9348
Stop testing against accounting prop in project
subiabre Dec 9, 2024
fe21280
Update checkout mapping
subiabre Dec 9, 2024
3f370c7
Parse array trackings on mapping from entity checkout
subiabre Dec 9, 2024
2e32896
Merge branch 'main' into fix/mapping
subiabre Dec 9, 2024
4735512
Update Gateway api resource
subiabre Dec 9, 2024
88ca27c
Update gateway mapping
subiabre Dec 9, 2024
7b8ca7c
Remove API attributes and simplify User entity
subiabre Dec 9, 2024
650add3
Add basic user api resource
subiabre Dec 9, 2024
52970c0
Use switch statement to set resource class of accounting owner
subiabre Dec 10, 2024
77c4a76
Add basic api resource state processor
subiabre Dec 10, 2024
e3c47a7
Update generic api resource state processor
subiabre Dec 10, 2024
f3a8ced
Add custom project api resource state processor
subiabre Dec 10, 2024
f2fd686
Update user token as api resource
subiabre Dec 10, 2024
b41830a
Refactor accounting entity ownership
subiabre Dec 10, 2024
2a39cd7
Update project owner cascade persitance
subiabre Dec 10, 2024
dfcd35a
Move user state processor
subiabre Dec 10, 2024
abc1bc6
Handle null owner cases in accounting entity
subiabre Dec 10, 2024
f2ab0d6
Update accounting api resource ownership settings
subiabre Dec 11, 2024
0b7d978
Update Project state processor
subiabre Dec 11, 2024
1a3be7e
Comply with PHP CS Fixer
subiabre Dec 11, 2024
cc2810d
Fix return docblocks for processors
subiabre Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ PAYPAL_CLIENT_ID=""
PAYPAL_CLIENT_SECRET=""
PAYPAL_WEBHOOK_ID="WEBHOOK_ID"
###< App\Gateway\Paypal\PaypalGateway ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=flock
###< symfony/lock ###
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^2.19",
"doctrineencryptbundle/doctrine-encrypt-bundle": "^5.4",
"jolicode/automapper": "^9.2",
"nelmio/cors-bundle": "^2.3",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.24",
Expand Down
289 changes: 227 additions & 62 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions config/packages/lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
framework:
lock: '%env(LOCK_DSN)%'
2 changes: 1 addition & 1 deletion config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ security:
# used to reload user from session & other features (e.g. switch_user)
app_user_provider:
entity:
class: App\Entity\User
class: App\Entity\User\User
property: username
firewalls:
dev:
Expand Down
6 changes: 6 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ services:
tags: ['app.lib.benzina.pump.pump']
App\Library\Economy\Currency\ExchangeInterface:
tags: ['app.lib.economy.currency.exchange']
AutoMapper\Provider\ProviderInterface:
tags: ['app.mapping.map_provider']

# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
Expand Down Expand Up @@ -65,5 +67,9 @@ services:
arguments:
- !tagged 'app.lib.economy.currency.exchange'

App\Mapping\AutoMapper:
arguments:
- !tagged 'app.mapping.map_provider'

# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
Loading
Loading