public function registerApplication(INabuApplication $nb_application)
    {
        if ($this->nb_application !== null) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_RUNNING_APPLICATION);
        }

        $this->nb_application = $nb_application;
        $this->nb_provider_factory->registerApplication($this->nb_application);
    }
public function registerApplication(INabuApplication $nb_application)
    {
        if ($this->nb_application !== null) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_RUNNING_APPLICATION);
        }

        $this->nb_application = $nb_application;
        $this->nb_provider_factory->registerApplication($this->nb_application);
    }
public function registerApplication ( INabuApplication $ nb_application ) { if ( $ this -> nb_application !== null ) { throw new ENabuCoreException ( ENabuCoreException :: ERROR_RUNNING_APPLICATION ) ; } $ this -> nb_application = $ nb_application ; $ this -> nb_provider_factory -> registerApplication ( $ this -> nb_application ) ; }
Set the running application.
@param INabuApplication $nb_application
@throws ENabuCoreException Throws an exception if another application is already setted
Set the running application .