-// Call the entry point method
-try {
- $eval = sprintf("%s::getInstance()->%s();",
- FrameworkConfiguration::getInstance()->readConfig("app_helper_class"),
- FrameworkConfiguration::getInstance()->readConfig("entry_method")
- );
- eval($eval);
-} catch (SocketCreationException $e) {
- // Problems while creating sockets
- ApplicationEntryPoint::app_die(sprintf("[Main:] Das Hub konnte nicht initialisiert werden. Reason: %s, Code: %s",
- $e->getMessage(),
- $e->getHexCode()
- ));
-} catch (SocketSetupException $e) {
- // Problems while setting up sockets
- ApplicationEntryPoint::app_die(sprintf("[Main:] Das Hub konnte nicht initialisiert werden. Reason: %s, Code: %s",
- $e->getMessage(),
- $e->getHexCode()
- ));
-} catch (SocketBindException $e) {
- // Problems while binding to address/port
- ApplicationEntryPoint::app_die(sprintf("[Main:] Das Hub konnte nicht initialisiert werden. Reason: %s, Code: %s",
- $e->getMessage(),
- $e->getHexCode()
- ));
-} catch (SocketListeningException $e) {
- // Problems while starting listen to the socket
- ApplicationEntryPoint::app_die(sprintf("[Main:] Das Hub konnte nicht initialisiert werden. Reason: %s, Code: %s",
- $e->getMessage(),
- $e->getHexCode()
- ));
-}