@@ -262,6 +262,11 @@ DOCUWARE_URL=https://domain.docuware.cloud
262262DOCUWARE_USERNAME=user@domain.test
263263DOCUWARE_PASSWORD=password
264264DOCUWARE_PASSPHRASE=" passphrase"
265+ DOCUWARE_TIMEOUT=30
266+ DOCUWARE_CACHE_DRIVER=file
267+ DOCUWARE_CACHE_LIFETIME_IN_SECONDS=60
268+ DOCUWARE_CLIENT_ID=docuware.platform.net.client
269+ DOCUWARE_SCOPE=docuware.platform
265270```
266271
267272With the passphrase we are able to encrypt the URLs.
@@ -312,31 +317,7 @@ $connector = new DocuWareConnector(
312317
313318### Available Requests
314319
315- - [ General] ( docs/General )
316- - [ Organisation] ( docs/General/organization.md )
317- - [ User Management] ( docs/General/User%20Management )
318- - [ Get Users] ( docs/General/User%20Management/get_users.md )
319- - [ Create/Update Users] ( docs/General/User%20Management/create-update_users.md )
320- - [ Get/Modify Groups] ( docs/General/User%20Management/get-modify_groups.md )
321- - [ Get/Modify Roles] ( docs/General/User%20Management/get-modify_roles.md )
322- - [ File Cabinets] ( docs/File%20Cabinets )
323- - [ General] ( docs/File%20Cabinets/general.md )
324- - [ Dialogs] ( docs/File%20Cabinets/dialogs.md )
325- - [ Search] ( docs/File%20Cabinets/search.md )
326- - [ Check/In & Check/Out] ( docs/File%20Cabinets/check-in_check-out.md )
327- - [ Select Lists] ( docs/File%20Cabinets/select_lists.md )
328- - [ Upload] ( docs/File%20Cabinets/upload.md )
329- - [ Batch Index Fields Update] ( docs/File%20Cabinets/batch_index_fields_update.md )
330- - [ Documents] ( docs/Documents )
331- - [ Update Index Values] ( docs/Documents/update_index_values.md )
332- - [ Modify Documents] ( docs/Documents/modify_documents.md )
333- - [ Clip/Unclip & Staple/Unstaple] ( docs/Documents/clip-unclicp_and_staple-unstaple.md )
334- - [ Annotations & Stamps] ( docs/Documents/annotations-stamps.md )
335- - [ Documents Trash Bin] ( docs/Documents/documents-trash-bin.md )
336- - [ Application Properties] ( docs/Documents/application_properties.md )
337- - [ Sections] ( docs/Documents/sections.md )
338- - [ Download] ( docs/Documents/download.md )
339- - [ Workflow] ( docs/workflow.md )
320+ The following sections provide examples for each available request type. All functionality is documented inline below with code examples.
340321
341322#### Organization
342323
@@ -1699,10 +1680,11 @@ return [
16991680 | Cache driver
17001681 |--------------------------------------------------------------------------
17011682 | You may like to define a different cache driver than the default Laravel cache driver.
1683+ | In Laravel 12+, CACHE_STORE is used instead of CACHE_DRIVER.
17021684 |
17031685 */
17041686
1705- 'cache_driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_DRIVER ', 'file')),
1687+ 'cache_driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_STORE ', 'file')),
17061688
17071689 /*
17081690 |--------------------------------------------------------------------------
@@ -1765,9 +1747,27 @@ return [
17651747 'additional_result_fields' => [],
17661748 ],
17671749 'cache' => [
1768- 'driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_DRIVER ', 'file')),
1750+ 'driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_STORE ', 'file')),
17691751 'lifetime_in_seconds' => env('DOCUWARE_CACHE_LIFETIME_IN_SECONDS', 60),
17701752 ],
1753+ 'request' => [
1754+ 'timeout_in_seconds' => env('DOCUWARE_TIMEOUT', 60),
1755+ ],
1756+
1757+ 'client_id' => env('DOCUWARE_CLIENT_ID', 'docuware.platform.net.client'),
1758+ 'scope' => env('DOCUWARE_SCOPE', 'docuware.platform'),
1759+ ],
1760+
1761+ /*
1762+ |--------------------------------------------------------------------------
1763+ | Tests
1764+ |--------------------------------------------------------------------------
1765+ |
1766+ */
1767+ 'tests' => [
1768+ 'file_cabinet_id' => env('DOCUWARE_TESTS_FILE_CABINET_ID'),
1769+ 'dialog_id' => env('DOCUWARE_TESTS_DIALOG_ID'),
1770+ 'basket_id' => env('DOCUWARE_TESTS_BASKET_ID'),
17711771 ],
17721772];
17731773```
@@ -1783,18 +1783,19 @@ cp phpunit.xml.dist phpunit.xml
17831783Modify environment variables in the phpunit.xml-file:
17841784
17851785``` xml
1786- <env name =" DOCUWARE_TOKEN" value =" " />
17871786<env name =" DOCUWARE_URL" value =" https://domain.docuware.cloud" />
17881787<env name =" DOCUWARE_USERNAME" value =" user@domain.test" />
17891788<env name =" DOCUWARE_PASSWORD" value =" password" />
17901789<env name =" DOCUWARE_PASSPHRASE" value =" passphrase" />
17911790<env name =" DOCUWARE_TIMEOUT" value =" 30" />
1791+ <env name =" DOCUWARE_CACHE_DRIVER" value =" file" />
17921792<env name =" DOCUWARE_CACHE_LIFETIME_IN_SECONDS" value =" 0" />
1793+ <env name =" DOCUWARE_CLIENT_ID" value =" docuware.platform.net.client" />
1794+ <env name =" DOCUWARE_SCOPE" value =" docuware.platform" />
17931795
17941796<env name =" DOCUWARE_TESTS_FILE_CABINET_ID" value =" " />
17951797<env name =" DOCUWARE_TESTS_DIALOG_ID" value =" " />
17961798<env name =" DOCUWARE_TESTS_BASKET_ID" value =" " />
1797- <env name =" DOCUWARE_TESTS_ORGANIZATION_ID" value =" " />
17981799```
17991800
18001801Run the tests:
@@ -1817,8 +1818,7 @@ Please review [our security policy](.github/SECURITY.md) on how to report securi
18171818
18181819## 🙏 Credits
18191820
1820- - [ Sebastian Fix] ( https://github.com/StanBarrows )
1821- - [ Rhys Lees] ( https://github.com/RhysLees )
1821+ - [ Sebastian Bürgin-Fix] ( https://github.com/StanBarrows )
18221822- [ All Contributors] ( ../../contributors )
18231823- [ Skeleton Repository from Spatie] ( https://github.com/spatie/package-skeleton-laravel )
18241824- [ Laravel Package Training from Spatie] ( https://spatie.be/videos/laravel-package-training )
0 commit comments