protected function registerContentType( $contentType, ConfigInterface $config ) {

		$class = __NAMESPACE__ . '\\' . $contentType;

		if ( ! class_exists( $class ) ) {
			throw new InvalidContentTypeException( $contentType );
		}

		( new $class( $config ) )->register();
	}
protected function registerContentType( $contentType, ConfigInterface $config ) {

		$class = __NAMESPACE__ . '\\' . $contentType;

		if ( ! class_exists( $class ) ) {
			throw new InvalidContentTypeException( $contentType );
		}

		( new $class( $config ) )->register();
	}
protected function registerContentType ( $ contentType , ConfigInterface $ config ) { $ class = __NAMESPACE__ . '\\' . $ contentType ; if ( ! class_exists ( $ class ) ) { throw new InvalidContentTypeException ( $ contentType ) ; } ( new $ class ( $ config ) ) -> register ( ) ; }
Register a single content type.

Possible content types:
- 'CustomPostType'
- 'CustomTaxonomy'

@since 0.1.0

@param string          $contentType Content type to register.
@param ConfigInterface $config      Config to use for this content type.
@throws ReservedTermException If a slug is a reserved term.
Register a single content type .