protected function loadRoutes( $web = '', $admin = '', $ajax = '' ) {
		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
			$this->loadRoutesFile( $ajax, [
				'namespace' => '\\App\\Controllers\\Ajax\\',
				'middleware' => ['ajax'],
			] );
			return;
		}

		if ( is_admin() ) {
			$this->loadRoutesFile( $admin, [
				'namespace' => '\\App\\Controllers\\Admin\\',
				'middleware' => ['admin'],
			] );
			return;
		}

		$this->loadRoutesFile( $web, [
			'namespace' => '\\App\\Controllers\\Web\\',
			'handler' => '\\WPEmerge\\Controllers\\WordPressController@handle',
			'middleware' => ['web'],
		] );
	}
protected function loadRoutes( $web = '', $admin = '', $ajax = '' ) {
		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
			$this->loadRoutesFile( $ajax, [
				'namespace' => '\\App\\Controllers\\Ajax\\',
				'middleware' => ['ajax'],
			] );
			return;
		}

		if ( is_admin() ) {
			$this->loadRoutesFile( $admin, [
				'namespace' => '\\App\\Controllers\\Admin\\',
				'middleware' => ['admin'],
			] );
			return;
		}

		$this->loadRoutesFile( $web, [
			'namespace' => '\\App\\Controllers\\Web\\',
			'handler' => '\\WPEmerge\\Controllers\\WordPressController@handle',
			'middleware' => ['web'],
		] );
	}
protected function loadRoutes ( $ web = '' , $ admin = '' , $ ajax = '' ) { if ( defined ( 'DOING_AJAX' ) && DOING_AJAX ) { $ this -> loadRoutesFile ( $ ajax , [ 'namespace' => '\\App\\Controllers\\Ajax\\' , 'middleware' => [ 'ajax' ] , ] ) ; return ; } if ( is_admin ( ) ) { $ this -> loadRoutesFile ( $ admin , [ 'namespace' => '\\App\\Controllers\\Admin\\' , 'middleware' => [ 'admin' ] , ] ) ; return ; } $ this -> loadRoutesFile ( $ web , [ 'namespace' => '\\App\\Controllers\\Web\\' , 'handler' => '\\WPEmerge\\Controllers\\WordPressController@handle' , 'middleware' => [ 'web' ] , ] ) ; }
Load route definition files depending on the current request.

@codeCoverageIgnore
@param  string $web
@param  string $admin
@param  string $ajax
@return void
Load route definition files depending on the current request .