-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
configuration.php
49 lines (36 loc) · 1.81 KB
/
configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
use Monolog\Logger;
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
return [
// The url to the psx public folder (i.e. http://api.acme.com or http://127.0.0.1/psx/public)
'psx_url' => env('APP_URL')->string(),
// The input path 'index.php/' or '' if every request is served to the index.php file
'psx_dispatch' => '',
// Defines the current environment i.e. prod or dev
'psx_env' => env('APP_ENV')->string(),
// Whether the app runs in debug mode or not. If not error reporting is set to 0, also several caches are used if
// the debug mode is false
'psx_debug' => env('APP_DEBUG')->bool(),
// Database parameters which are used for the doctrine DBAL connection
// https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html
'psx_connection' => env('APP_CONNECTION')->string(),
// Mailer connection which is used to send mails
// https://symfony.com/doc/current/mailer.html#using-built-in-transports
'psx_mailer' => env('APP_MAILER')->string(),
// Optional an SDKgen access token which adds support for different SDK generators
// https://sdkgen.app/
'sdkgen_client_id' => env('SDKGEN_CLIENT_ID')->string(),
'sdkgen_client_secret' => env('SDKGEN_CLIENT_SECRET')->string(),
// The log level
'psx_log_level' => Logger::ERROR,
// Folder locations
'psx_path_cache' => __DIR__ . '/cache',
'psx_path_src' => __DIR__ . '/src',
'psx_path_log' => __DIR__ . '/log',
// Supported writers
'psx_supported_writer' => [
\PSX\Data\Writer\Json::class,
\PSX\Data\Writer\Jsonp::class,
\PSX\Data\Writer\Jsonx::class,
],
];