Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "forestadmin/symfony-forestadmin",
"version": "1.0.0",
"minimum-stability": "beta",
"prefer-stable": true,
"description": "Forest Admin provides an off-the-shelf administration panel based on a highly-extensible API plugged into your application.",
"type": "symfony-bundle",
Expand All @@ -11,8 +10,8 @@
"doctrine/orm": "^2.8",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/console": "^5.4|^6.0",
"forestadmin/php-datasource-doctrine": "^1.0@beta",
"forestadmin/php-datasource-customizer": "^1.0@beta"
"forestadmin/php-datasource-doctrine": "^1.0",
"forestadmin/php-datasource-customizer": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down
19 changes: 10 additions & 9 deletions src/Service/ForestAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ private function loadConfiguration(): void
private function loadOptions(): array
{
return [
'debug' => Env::get('FOREST_DEBUG', true),
'authSecret' => Env::get('FOREST_AUTH_SECRET'),
'envSecret' => Env::get('FOREST_ENV_SECRET'),
'forestServerUrl' => Env::get('FOREST_SERVER_URL', 'https://api.forestadmin.com'),
'isProduction' => Env::get('APP_ENV', 'dev') === 'prod',
'prefix' => Env::get('FOREST_PREFIX', 'forest'),
'cacheDir' => $this->appKernel->getContainer()->getParameter('kernel.cache_dir') . '/forest',
'schemaPath' => $this->appKernel->getProjectDir() . '/.forestadmin-schema.json',
'projectDir' => $this->appKernel->getProjectDir(),
'debug' => Env::get('FOREST_DEBUG', true),
'authSecret' => Env::get('FOREST_AUTH_SECRET'),
'envSecret' => Env::get('FOREST_ENV_SECRET'),
'forestServerUrl' => Env::get('FOREST_SERVER_URL', 'https://api.forestadmin.com'),
'isProduction' => Env::get('APP_ENV', 'dev') === 'prod',
'prefix' => Env::get('FOREST_PREFIX', 'forest'),
'permissionExpiration' => Env::get('FOREST_PERMISSIONS_EXPIRATION_IN_SECONDS', 1),
'cacheDir' => $this->appKernel->getContainer()->getParameter('kernel.cache_dir') . '/forest',
'schemaPath' => $this->appKernel->getProjectDir() . '/.forestadmin-schema.json',
'projectDir' => $this->appKernel->getProjectDir(),
];
}
}