ScriptHandler
class ScriptHandler
The ScriptHandler class installs users who can log in to the G6K administration interface and a demonstration simulator (if desired).
It is executed by Composer at the end of the G6K installation. See file composer.json (post-install-cmd)
Constants
CHARSET |
|
LABEL |
|
Properties
static private mixed|null | $locales |
Methods
Builds environment variables
function setEnvironmentVariable
function getEnvironmentVariables
Users installation:
Installation of the demonstration simulator from the files "demo.schema.json" and "demo.json" located in the directory 'src/EUREKA/G6KBundle/Resources/data/databases'.
This function parses the '.env' file and returns an array of database parameters
function getParameterValue
function generateRandomSecret
Details
at line 95
static void
buildDotenv(Event $event)
Builds environment variables
at line 178
static private void
setEnvironmentVariable(array $variables, mixed $variable, mixed $value)
function setEnvironmentVariable
set the value of environmentVariable
at line 196
static private mixed
getEnvironmentVariables(Event $event, array $variables)
function getEnvironmentVariables
get the value of environmentVariables
at line 340
static void
installUsers(Event $event)
Users installation:
- Creation of the database according to parameters provided in parameters.yml
- Running the 'fos_user.sql' script in the 'src/EUREKA/G6KBundle/Resources/data/databases' directory. This script contains an 'insert' of two users: admin and guest.
at line 456
static void
installDemo(Event $event)
Installation of the demonstration simulator from the files "demo.schema.json" and "demo.json" located in the directory 'src/EUREKA/G6KBundle/Resources/data/databases'.
at line 503
static protected array|false
getParameters(Event $event, mixed $symfonyDir)
This function parses the '.env' file and returns an array of database parameters
at line 538
static protected mixed
getParameterValue(mixed $symfonyDir, mixed $parameter)
function getParameterValue
get the value of parameterValue
at line 553
static protected mixed
generateRandomSecret()
function generateRandomSecret