mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-01 17:38:25 +03:00
25 lines
435 B
PHP
25 lines
435 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Shlinkio\Shlink\Rest;
|
||
|
|
||
|
use Mezzio\Application;
|
||
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
||
|
|
||
|
use const PHP_SAPI;
|
||
|
|
||
|
return [
|
||
|
|
||
|
'initial_api_key' => PHP_SAPI !== 'cli' ? null : EnvVars::INITIAL_API_KEY->loadFromEnv(),
|
||
|
|
||
|
'dependencies' => [
|
||
|
'delegators' => [
|
||
|
Application::class => [
|
||
|
ApiKey\InitialApiKeyDelegator::class,
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
|
||
|
];
|