src/Bootstrap.php
public static function getEnvironmentVariables() {
    $dir = shell_exec('pwd');
    $dir_parts = explode(DIRECTORY_SEPARATOR, $dir);
    $project = trim(array_pop($dir_parts));
    $client = trim(array_pop($dir_parts));
    $dir = $dir . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'project' . DIRECTORY_SEPARATOR . $client . DIRECTORY_SEPARATOR . $project;
    $environment_file = file_get_contents($dir . DIRECTORY_SEPARATOR . 'environment.yml');
    if (!$environment_file) {
      throw new MissingEnvironmentConfigurationException("The environment configuration is missing, please contact your administrator.");
    }
    return new EnvironmentVariables(Yaml::parse($environment_file));
  }
public static function getEnvironmentVariables() {
    $dir = shell_exec('pwd');
    $dir_parts = explode(DIRECTORY_SEPARATOR, $dir);
    $project = trim(array_pop($dir_parts));
    $client = trim(array_pop($dir_parts));
    $dir = $dir . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'project' . DIRECTORY_SEPARATOR . $client . DIRECTORY_SEPARATOR . $project;
    $environment_file = file_get_contents($dir . DIRECTORY_SEPARATOR . 'environment.yml');
    if (!$environment_file) {
      throw new MissingEnvironmentConfigurationException("The environment configuration is missing, please contact your administrator.");
    }
    return new EnvironmentVariables(Yaml::parse($environment_file));
  }
public static function getEnvironmentVariables ( ) { $ dir = shell_exec ( 'pwd' ) ; $ dir_parts = explode ( DIRECTORY_SEPARATOR , $ dir ) ; $ project = trim ( array_pop ( $ dir_parts ) ) ; $ client = trim ( array_pop ( $ dir_parts ) ) ; $ dir = $ dir . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'project' . DIRECTORY_SEPARATOR . $ client . DIRECTORY_SEPARATOR . $ project ; $ environment_file = file_get_contents ( $ dir . DIRECTORY_SEPARATOR . 'environment.yml' ) ; if ( ! $ environment_file ) { throw new MissingEnvironmentConfigurationException ( "The environment configuration is missing, please contact your administrator." ) ; } return new EnvironmentVariables ( Yaml :: parse ( $ environment_file ) ) ; }
Bootstraps the environment variables.

@return \Hedron\Configuration\EnvironmentVariables
The environment variables from yaml.

@throws \Hedron\Exception\MissingEnvironmentConfigurationException
If the yaml file is missing, throws this exception.
Bootstraps the environment variables .