public function newFromApplication(ApplicationInterface $application)
    {
        // create a new AppNode and initialize it
        $appNode = new AppNode();
        $appNode->initFromApplication($application);
        $appNode->setParentUuid($this->getSystemConfiguration()->getUuid());

        // persist the AppNode instance
        $this->persist($appNode);
    }
public function newFromApplication(ApplicationInterface $application)
    {
        // create a new AppNode and initialize it
        $appNode = new AppNode();
        $appNode->initFromApplication($application);
        $appNode->setParentUuid($this->getSystemConfiguration()->getUuid());

        // persist the AppNode instance
        $this->persist($appNode);
    }
public function newFromApplication ( ApplicationInterface $ application ) { // create a new AppNode and initialize it $ appNode = new AppNode ( ) ; $ appNode -> initFromApplication ( $ application ) ; $ appNode -> setParentUuid ( $ this -> getSystemConfiguration ( ) -> getUuid ( ) ) ; // persist the AppNode instance $ this -> persist ( $ appNode ) ; }
Creates a new app node for the passed application and attaches
it to the system configuration.

@param \AppserverIo\Psr\Application\ApplicationInterface $application The application to create a new AppNode for

@return void
Creates a new app node for the passed application and attaches it to the system configuration .