Part-DB-server/config/packages
Marc be35c36c58
Added info provider for Buerklin (#1151)
* Fixed Typos and mistranslations in GDPR mode (DSGVO Modus)
Fixed Typo enviroment

* Create BuerklinProvider based on LCSCProvider

* Update GET URLs for Buerklin

* Add getToken function analog to Octopart

* Remove line break in docs

* Remove trailing / in ENDPOINT_URL
Use Autowire to use values of environment variables
Remove unwanted Code from LCSC-Provider
Map json response to DTO variables

* Fix variable reference errors ($term → $keyword)
Ensure array keys exist before accessing them
Optimize API calls to prevent unnecessary requests
Improve error handling for better debugging
Enhance readability and maintainability of functions

* Bumped version v1.16.2

* Update BuerklinProvider.php

Change Order of Capabilities

* Change order of capabilities in LCSCProvider.php

* Change order of capabilities in PollinProvider.php

* Try to fix getToken BuerklinProvider.php

* Add ip_buerklin_oauth to knpu_oauth2_client.yaml

* Update buerklin authorize URL in knpu_oauth2_client.yaml

* Update knpu_oauth2_client.yaml

* Adapt Buerklin InfoProvider to new Settings mechanism

* According to Buerklin API spec it's really 'token' as urlAuthorize endpoint

* Rückgabewert ist schon ein Array deshalb kein toArray

* Fix API-Access, add image, price and parameter retrieval (Datasheets not yet implemented because it is not available in the API response)

* Add Caching of requests, use default query params (language and currency) using a function, Fix Footprint assignment, translate German code comments

* Remove DATASHEET from ProviderCapabilities because the Bürklin API doesn't include Datasheet URLs at the moment, more reverse engineering needed

* Update BuerklinSettings with existing translatable strings

* Improve Buerklin Settings Page

* Added Translation strings for Buerklin Info Provider

* Improve Buerklin Provider help message

* Adapt Buerklin-provider to new settings system

* Adapt Buerklin-provider to new settings system: add missing instance of BuerklinSettings

* Improve Compliance Parameters parsing

* Remove language-dependent RoHs Date code and use shortened ISO format, Add Customs Code without parseValueField

* Fix no results for keyword search

* Implement BatchInfoProviderInterface for Buerklin Provider

* Rename searchBatch to searchByKeywordsBatch to correctly implement BatchInfoProviderInterface

* Fix Bulk Info Provider Import for Buerklin

* Tranlate comments to English to prepare for Pull-Request

* Add phpUnit unit tests for BuerklinProvider

* Try fixing PHPStan issues

* Remove OAuthTokenManager from BuerklinProviderTest

Removed OAuthTokenManager mock from BuerklinProviderTest setup.

* Fix Settings must not be instantiated directly

* Fix UnitTest for value_typ

* edd5fb3319 (r2622249199)
Revert "Change order of capabilities in LCSCProvider.php"

This reverts commit dfd6f33e52.

* edd5fb3319 (r2622249861)
Revert "Change order of capabilities in PollinProvider.php"

This reverts commit fc2e7265be.

* Use language setting for ProductShortURL

* Update default language for Buerklin provider to English in documentation

* Add suggested improvements from SonarQube

* Removed unused use directives

* Revert SonarQube proposed change. Having more than one return is acceptable nowadays

* Improve getProviderInfo: disable oauth_app_name, add settings_class, improve disabled_help

* Implement retrieveROPCToken as proposed in https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622976206

* Add missing ) to retrieveROPCToken

* add use OAuthTokenManager and create instance in constructor

* Revert the following commits that tried to implement getToken using OAuthTokenManager

Revert "add use OAuthTokenManager and create instance in constructor"This reverts commit 2a1e7c9b0974ebd7e082d5a2fa62753d6254a767.Revert "Add missing ) to retrieveROPCToken"This reverts commit 8df5cfc49e.
Revert "Implement retrieveROPCToken as proposed in https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622976206"
This reverts commit 66cc732082.

* Remove OAuthTokenManager leftovers

* Disable buerklin provider if settings fields are empty

* Improved docs

* Added TODO comment

---------

Co-authored-by: root <root@part-db.fritz.box>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-01-04 21:05:47 +01:00
..
dev Use jbtronics/translation-editor bundle instead of php-translation/symfony-bundle for profiler translation editing 2024-09-08 20:03:33 +02:00
prod Upgraded doctrine-bundle recipe 2023-02-11 22:27:51 +01:00
test Use str_contains and similar instead of strpos 2023-05-27 23:58:28 +02:00
api_platform.yaml Updated to API Platform 4 2025-08-04 23:32:42 +02:00
assets.yaml Added a basic show part info with new design. Not finished yet... 2019-02-24 18:05:06 +01:00
cache.yaml Cache the DTO objects returned by the info providers 2023-07-16 19:05:26 +02:00
csrf.yaml Updated ux-turbo recipe 2025-07-13 16:46:41 +02:00
dama_doctrine_test_bundle.yaml Updated recipes to update docker related files 2024-03-10 18:08:22 +01:00
datatables.yaml Disable searching option on datatables which we do not need and which causes an CSP violation 2025-08-31 01:34:31 +02:00
debug.yaml Updated symfony/debug recipe 2022-03-04 19:07:10 +01:00
doctrine.php Use native lazy objects for doctrine when on PHP8.4 2025-09-22 23:52:31 +02:00
doctrine.yaml Removed ArrayType which is not necessary anymore with the new webauthn lib 2025-08-14 18:47:17 +02:00
doctrine_migrations.yaml Updated doctrine/doctrine-migrations recipe. 2021-10-02 20:47:01 +02:00
dompdf_font_loader.yaml Added GNU unifont as fallback font for labels with CJK characters 2023-07-02 03:26:56 +02:00
framework.yaml Fixed login CSFR token error 2025-08-04 23:50:25 +02:00
http_client.yaml Added proper OAuth authentication for digikey and other providers 2023-07-16 03:07:53 +02:00
http_discovery.yaml Updated recipe of php-http/discovery 2023-05-27 20:52:04 +02:00
knpu_oauth2_client.yaml Added info provider for Buerklin (#1151) 2026-01-04 21:05:47 +01:00
liip_imagine.yaml Fixed LiipImagine deprecation 2023-04-15 19:11:06 +02:00
mailer.yaml Added an mechanism to reset passwords via mail. 2019-11-24 22:49:22 +01:00
monolog.yaml Updated monolog recipe 2025-11-30 14:51:56 +01:00
nbgrp_onelogin_saml.yaml Use the DEFAULT_URI setting for SAML base url instead of auto determining it. 2023-12-10 22:52:59 +01:00
nelmio_cors.yaml Added first API endpoint 2023-08-06 00:42:34 +02:00
nelmio_security.yaml Removed Microsoft X-XSS-Protection header, as it is not recommended on modern browsers anymore and is considered deprecated 2025-09-19 09:18:49 +02:00
nyholm_psr7.yaml Added an console command for updating currency exchange rates. 2019-08-13 13:04:31 +02:00
property_info.yaml Updated recipe for property_info 2025-07-13 12:13:10 +02:00
routing.yaml Updated routing recipe 2025-07-13 16:40:56 +02:00
scheb_2fa.yaml Removed deprecated google 2FA option 2023-12-05 22:07:48 +01:00
security.yaml Use new webauthn library for 2FA 2025-08-14 18:46:10 +02:00
settings.yaml Disable settings caching in debug mode 2025-09-07 19:44:32 +02:00
swap.yaml Allow for more currency exchange rate pairs, without need for fixer.io 2025-09-05 22:15:04 +02:00
translation.yaml Fixed 2DA login 2025-12-07 22:47:27 +01:00
twig.yaml Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
ux_translator.yaml Use symfony/ux-translator to translate password_strength_estimator badges 2023-06-28 16:00:11 +02:00
ux_turbo.yaml Fixed login CSFR token error 2025-08-04 23:50:25 +02:00
validator.yaml Updated validator recipe 2025-07-13 16:30:11 +02:00
web_profiler.yaml Use ajax_replace option for symfony debug toolbar instead of custom event subscriber 2025-08-24 12:24:08 +02:00
webauthn_2fa.yaml Renamed security template folder to recommended snake_case style 2023-02-04 22:59:43 +01:00
webpack_encore.yaml Automatic reload assets on when they change. 2022-03-04 20:19:43 +01:00