public static function wake_app( $app )
	{
		static::$runtime_class = $app;
		\CCFinder::bind( $app, static::$paths['app'].$app.EXT );
		
		// run the application wake
		$response = $app::wake();
		
		// when the application wake returns an response we display it
		if ( $response instanceof CCResponse ) {
			if ( static::$config->send_app_wake_response ) {
				$response->send( true ); die;	
			}
		}
		
		$response = null;
		
		// run the environment wake
		if ( method_exists( $app, 'wake_'.static::$environment ) )
		{
			$response = call_user_func( $app.'::wake_'.static::$environment );
			
			// when the application env wake returns an response we display it
			if ( $response instanceof CCResponse ) {
				if ( static::$config->send_app_wake_response ) {
					$response->send( true ); die;	
				}
			}
		}
		
		// add routes from the app
		CCRouter::on( $app::routes() );
	}
public static function wake_app( $app )
	{
		static::$runtime_class = $app;
		\CCFinder::bind( $app, static::$paths['app'].$app.EXT );
		
		// run the application wake
		$response = $app::wake();
		
		// when the application wake returns an response we display it
		if ( $response instanceof CCResponse ) {
			if ( static::$config->send_app_wake_response ) {
				$response->send( true ); die;	
			}
		}
		
		$response = null;
		
		// run the environment wake
		if ( method_exists( $app, 'wake_'.static::$environment ) )
		{
			$response = call_user_func( $app.'::wake_'.static::$environment );
			
			// when the application env wake returns an response we display it
			if ( $response instanceof CCResponse ) {
				if ( static::$config->send_app_wake_response ) {
					$response->send( true ); die;	
				}
			}
		}
		
		// add routes from the app
		CCRouter::on( $app::routes() );
	}
public static function wake_app ( $ app ) { static :: $ runtime_class = $ app ; \ CCFinder :: bind ( $ app , static :: $ paths [ 'app' ] . $ app . EXT ) ; // run the application wake $ response = $ app :: wake ( ) ; // when the application wake returns an response we display it if ( $ response instanceof CCResponse ) { if ( static :: $ config -> send_app_wake_response ) { $ response -> send ( true ) ; die ; } } $ response = null ; // run the environment wake if ( method_exists ( $ app , 'wake_' . static :: $ environment ) ) { $ response = call_user_func ( $ app . '::wake_' . static :: $ environment ) ; // when the application env wake returns an response we display it if ( $ response instanceof CCResponse ) { if ( static :: $ config -> send_app_wake_response ) { $ response -> send ( true ) ; die ; } } } // add routes from the app CCRouter :: on ( $ app :: routes ( ) ) ; }
start the ccf app lifecycle

This method registers the App class and runs the wake events.

@param string			$app		The used app class = APPATH/<$app>.php
@return void
start the ccf app lifecycle