Passed
Push — main ( 2eea92...febc1c )
by Chema
11:04
created

lightning-config.dist.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpLightning\Config\Backend\LnBitsBackendConfig;
6
use PhpLightning\Config\LightningConfig;
7
8
return (new LightningConfig())
9
    ->setDomain('localhost')
10
    ->setReceiver('default-receiver')
11
    ->setSendableRange(min: 100_000, max: 10_000_000_000)
0 ignored issues
show
The constant 100_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
The constant 10_000_000_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
12
    ->setCallbackUrl('localhost:8000/callback')
13
14
    #################################################
15
    # You can add backend configurations in two ways
16
    #################################################
17
18
    # OPTION A) using an external json
19
    ->addBackendsAsJson(__DIR__ . DIRECTORY_SEPARATOR . 'nostr.json')
20
21
    # OPTION B) using custom PHP config
22
    ->setBackends([
23
        'user-1' => LnBitsBackendConfig::withEndpointAndKey('http://localhost:5000', 'api_key-1'),
24
        'user-2' => LnBitsBackendConfig::withEndpointAndKey('http://localhost:5000', 'api_key-2'),
25
    ])
26
;
27