Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

**DEPLOY** Should be set to false in production #16

Open
github-actions bot opened this issue Feb 8, 2025 · 0 comments
Open

**DEPLOY** Should be set to false in production #16

github-actions bot opened this issue Feb 8, 2025 · 0 comments
Assignees

Comments

@github-actions
Copy link

github-actions bot commented Feb 8, 2025

'displayErrorDetails' => true, // TODO **DEPLOY** Should be set to false in production

use App\Application\Settings\Settings;
use App\Application\Settings\SettingsInterface;
use DI\ContainerBuilder;
use Dotenv\Dotenv;
use GrotonSchool\SlimLTI\Actions\LTIAction;
use GrotonSchool\SlimLTI\GAE\Infrastructure\Cache;
use Psr\Log\LoggerInterface;

Dotenv::createImmutable(__DIR__ . '/..')->safeLoad();

return function (ContainerBuilder $containerBuilder) {
    // Global Settings Object
    $containerBuilder->addDefinitions([
        SettingsInterface::class => function () {
            return new Settings([
                'displayErrorDetails' => true, // TODO **DEPLOY** Should be set to false in production
                'logError' => true,
                'logErrorDetails' => true,
                LoggerInterface::class => [
                    'name' => 'lti-gae',
                ],
                Cache::class => [
                    Cache::DURATION => 3600, // seconds
                ],
                'projectId' => $_ENV['PROJECT'],
                LTIAction::PROJECT_URL => $_ENV['PROJECT_URL'],
            ]);
        },
    ]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant