Skip to content

Commit 2cda7c1

Browse files
committed
move config
1 parent cd07132 commit 2cda7c1

2 files changed

Lines changed: 58 additions & 64 deletions

File tree

config/phizz.php

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,63 @@
11
<?php
22

3-
// config for Phizz/Phizz
43
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Riot Games API Key
7+
|--------------------------------------------------------------------------
8+
|
9+
| Your Riot Games API key. You can obtain one from the Riot Developer Portal.
10+
| It is recommended to store this in your .env file as RIOT_API_KEY.
11+
|
12+
*/
13+
'api_key' => env('RIOT_API_KEY', ''),
514

15+
/*
16+
|--------------------------------------------------------------------------
17+
| Default Platform
18+
|--------------------------------------------------------------------------
19+
|
20+
| The platform region to use when making API calls. This can be overridden
21+
| on a per‑call basis.
22+
|
23+
*/
24+
'default_platform' => env('RIOT_DEFAULT_PLATFORM', \Phizz\Enums\Platform::NA),
25+
26+
/*
27+
|--------------------------------------------------------------------------
28+
| Request Timeout (seconds)
29+
|--------------------------------------------------------------------------
30+
|
31+
| The maximum number of seconds to wait for a response from the Riot API.
32+
|
33+
*/
34+
'timeout' => env('RIOT_TIMEOUT', 60),
35+
36+
/*
37+
|--------------------------------------------------------------------------
38+
| Cache Settings
39+
|--------------------------------------------------------------------------
40+
|
41+
| Enable or disable caching of API responses.
42+
|
43+
*/
44+
'cache' => [
45+
'enabled' => env('RIOT_CACHE_ENABLED', true),
46+
'default' => env('RIOT_CACHE_TTL', 60), // 1 minute
47+
'method' => [
48+
// You can define method‑specific cache ttl's here
49+
],
50+
],
51+
52+
/*
53+
|--------------------------------------------------------------------------
54+
| Logging
55+
|--------------------------------------------------------------------------
56+
|
57+
| Log all API requests and responses? Useful for debugging.
58+
|
59+
*/
60+
'logging' => [
61+
'enabled' => env('RIOT_LOGGING_ENABLED', false),
62+
],
663
];

src/config/phizz.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)