AppserverIo\Appserver\Core\Api\AppService::persist PHP Метод

persist() публичный Метод

Persists the system configuration.
public persist ( AppserverIo\Configuration\Interfaces\NodeInterface $appNode ) : void
$appNode AppserverIo\Configuration\Interfaces\NodeInterface The application node object
Результат void
    public function persist(NodeInterface $appNode)
    {
        $systemConfiguration = $this->getSystemConfiguration();
        $systemConfiguration->attachApp($appNode);
        $this->setSystemConfiguration($systemConfiguration);
    }

Usage Example

Пример #1
0
 /**
  * If we can run the un-deploy functionality without receiving an error
  *
  * @return null
  */
 public function testUndeploy()
 {
     $mockExtractor = $this->getMock('\\AppserverIo\\Appserver\\Core\\Interfaces\\ExtractorInterface');
     $mockExtractor->expects($this->once())->method('unflagArchive');
     $this->appService->injectExtractor($mockExtractor);
     $appNode = new AppNode(__METHOD__, '/opt/appserver/targetwebapp');
     $this->appService->persist($appNode);
     $this->appService->undeploy($appNode->getUuid());
 }
All Usage Examples Of AppserverIo\Appserver\Core\Api\AppService::persist