9use InvalidArgumentException;
31 if ( !$namespaceInfo->
exists( $ns ) ) {
32 throw new InvalidArgumentException(
"Namespace $ns doesn't exist on this wiki" );
34 $this->titleFactory = $titleFactory;
47 return $this->titleFactory->makeTitleSafe( $this->ns, $foreignTitle->
getText() );
52class_alias( NamespaceImportTitleFactory::class,
'NamespaceImportTitleFactory' );