protected function createEnvironmentConfiguration(ApplicationContext $context, $temporaryDirectory = null)
{
if ($temporaryDirectory === null) {
$temporaryDirectory = FLOW_PATH_TEMPORARY;
}
return new EnvironmentConfiguration(FLOW_PATH_ROOT . '~' . (string) $context, $temporaryDirectory, PHP_MAXPATHLEN);
}