23use InvalidArgumentException;
45 if ( !$namespaceInfo->
exists( $ns ) ) {
46 throw new InvalidArgumentException(
"Namespace $ns doesn't exist on this wiki" );
48 $this->titleFactory = $titleFactory;
61 return $this->titleFactory->makeTitleSafe( $this->ns, $foreignTitle->
getText() );
66class_alias( NamespaceImportTitleFactory::class,
'NamespaceImportTitleFactory' );