public function addApplicationToSystemConfiguration(ApplicationInterface $application)
    {

        // try to load the API app service instance
        $appNode = $this->getService()->loadByWebappPath($application->getWebappPath());

        // check if the application has already been attached to the container
        if ($appNode == null) {
            $this->getService()->newFromApplication($application);
        }

        // connect the application to the container
        $application->connect();
    }
public function addApplicationToSystemConfiguration(ApplicationInterface $application)
    {

        // try to load the API app service instance
        $appNode = $this->getService()->loadByWebappPath($application->getWebappPath());

        // check if the application has already been attached to the container
        if ($appNode == null) {
            $this->getService()->newFromApplication($application);
        }

        // connect the application to the container
        $application->connect();
    }
public function addApplicationToSystemConfiguration ( ApplicationInterface $ application ) { // try to load the API app service instance $ appNode = $ this -> getService ( ) -> loadByWebappPath ( $ application -> getWebappPath ( ) ) ; // check if the application has already been attached to the container if ( $ appNode == null ) { $ this -> getService ( ) -> newFromApplication ( $ application ) ; } // connect the application to the container $ application -> connect ( ) ; }
Connects the passed application to the system configuration.

@param \AppserverIo\Psr\Application\ApplicationInterface $application The application to be prepared

@return void
Connects the passed application to the system configuration .