<?php
declare(strict_types=1);

use App\Core\Support\Env;

return [
    'name' => Env::get('APP_NAME', 'orderPRO'),
    'env' => Env::get('APP_ENV', 'production'),
    'debug' => Env::bool('APP_DEBUG', false),
    'url' => Env::get('APP_URL', ''),
    'locale' => Env::get('APP_LOCALE', 'pl'),
    'session' => [
        'name' => Env::get('SESSION_NAME', 'orderpro_session'),
        'path' => dirname(__DIR__) . '/storage/sessions',
    ],
    'integrations' => [
        'secret' => Env::get('INTEGRATIONS_SECRET', ''),
    ],
    'cron' => [
        'run_on_web_default' => Env::bool('CRON_RUN_ON_WEB', false),
        'web_limit_default' => max(1, min(100, (int) Env::get('CRON_WEB_LIMIT', '5'))),
        'public_token' => Env::get('CRON_PUBLIC_TOKEN', ''),
    ],
    'view_path' => dirname(__DIR__) . '/resources/views',
    'lang_path' => dirname(__DIR__) . '/resources/lang',
    'log_path' => dirname(__DIR__) . '/storage/logs/app.log',
    'migrations_path' => dirname(__DIR__) . '/database/migrations',
];
