protected function doSwitchSetupMode($newMode, $configurationFilename)
    {
        // load the current user from the naming directory
        $currentUser = $this->getNamingDirectory()->search('php:env/currentUser');

        // load the service instance and switch to the new setup mode
        /** @var \AppserverIo\Appserver\Core\Api\ContainerService $service */
        $service = $this->newService('AppserverIo\Appserver\Core\Api\ContainerService');
        $service->switchSetupMode($newMode, $configurationFilename, $currentUser);
    }
protected function doSwitchSetupMode($newMode, $configurationFilename)
    {
        // load the current user from the naming directory
        $currentUser = $this->getNamingDirectory()->search('php:env/currentUser');

        // load the service instance and switch to the new setup mode
        /** @var \AppserverIo\Appserver\Core\Api\ContainerService $service */
        $service = $this->newService('AppserverIo\Appserver\Core\Api\ContainerService');
        $service->switchSetupMode($newMode, $configurationFilename, $currentUser);
    }
protected function doSwitchSetupMode ( $ newMode , $ configurationFilename ) { // load the current user from the naming directory $ currentUser = $ this -> getNamingDirectory ( ) -> search ( 'php:env/currentUser' ) ; // load the service instance and switch to the new setup mode /** @var \AppserverIo\Appserver\Core\Api\ContainerService $service */ $ service = $ this -> newService ( 'AppserverIo\Appserver\Core\Api\ContainerService' ) ; $ service -> switchSetupMode ( $ newMode , $ configurationFilename , $ currentUser ) ; }
Switches the running setup mode to the passed value.

@param string $newMode               The mode to switch to
@param string $configurationFilename The path of the configuration filename

@return void
@throws \Exception Is thrown for an invalid setup mode passed
Switches the running setup mode to the passed value .