AppserverIo\Appserver\Core\Api\AbstractService::setSystemConfiguration PHP Method

setSystemConfiguration() public method

(non-PHPdoc)
See also: AppserverIo\Appserver\Core\Api\ServiceInterface::setSystemConfiguration()
public setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : AppserverIo\Appserver\Core\Api\ServiceInterface
$systemConfiguration AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface The system configuration
return AppserverIo\Appserver\Core\Api\ServiceInterface
    public function setSystemConfiguration(SystemConfigurationInterface $systemConfiguration)
    {
        $this->getInitialContext()->setSystemConfiguration($systemConfiguration);
    }

Usage Example

 /**
  * Test if the getter/setter for the system configuration.
  *
  * @return null
  */
 public function testGetSetSystemConfiguration()
 {
     $systemConfiguration = $this->service->getSystemConfiguration();
     $this->service->setSystemConfiguration($systemConfiguration);
     $this->assertSame($systemConfiguration, $this->service->getSystemConfiguration());
 }