Raydium Framework

EnvSwitcherInterface

Interface for managing different environment settings.

Table of Contents

createEnvironment()  : void
Switches between different environments based on the value of $environment.
debug()  : void
Configure the environment for debugging.
development()  : void
Configure the environment for development.
production()  : void
Configure the environment for production.
secure()  : void
Configure the environment for secure production.
staging()  : void
Configure the environment for staging.

Methods

createEnvironment()

Switches between different environments based on the value of $environment.

public createEnvironment(string $environment, string $error_logs_dir) : void
Parameters
$environment : string

The environment to switch to.

$error_logs_dir : string

The error logs directory relative path.

Return values
void

debug()

Configure the environment for debugging.

public debug() : void

This method should be used for debugging purposes.

Return values
void

development()

Configure the environment for development.

public development() : void

This method should be used in a development environment.

Return values
void

production()

Configure the environment for production.

public production() : void

This method should be used in a production environment.

Return values
void

secure()

Configure the environment for secure production.

public secure() : void

This method should be used in a secure production environment.

Return values
void

staging()

Configure the environment for staging.

public staging() : void

This method should be used in a staging environment.

Return values
void

Search results