| 412 | | if (!is_null($this->context)) |
|---|
| 413 | | { |
|---|
| 414 | | $currentConfiguration = $this->context->getConfiguration(); |
|---|
| 415 | | $configuration = ProjectConfiguration::getApplicationConfiguration($currentConfiguration->getApplication(), $currentConfiguration->getEnvironment(), $currentConfiguration->isDebug()); |
|---|
| 416 | | $this->context = sfContext::createInstance($configuration); |
|---|
| 417 | | unset($currentConfiguration); |
|---|
| 418 | | |
|---|
| | 412 | $isContextEmpty = is_null($this->context); |
|---|
| | 413 | $context = $isContextEmpty ? sfContext::getInstance() : $this->context; |
|---|
| | 414 | |
|---|
| | 415 | $currentConfiguration = $context->getConfiguration(); |
|---|
| | 416 | $configuration = ProjectConfiguration::getApplicationConfiguration($currentConfiguration->getApplication(), $currentConfiguration->getEnvironment(), $currentConfiguration->isDebug()); |
|---|
| | 417 | $this->context = sfContext::createInstance($configuration); |
|---|
| | 418 | unset($currentConfiguration); |
|---|
| | 419 | |
|---|
| | 420 | if (!$isContextEmpty) |
|---|
| | 421 | { |
|---|