Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function importSiteAction($packageKey)
    {
        try {
            $this->siteImportService->importFromPackage($packageKey);
            $this->addFlashMessage('The site has been imported.', '', null, [], 1412372266);
        } catch (\Exception $exception) {
            $logMessage = $this->throwableStorage->logThrowable($exception);
            $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
            $this->addFlashMessage('Error: During the import of the "Sites.xml" from the package "%s" an exception occurred: %s', 'Import error', Message::SEVERITY_ERROR, [htmlspecialchars($packageKey), htmlspecialchars($exception->getMessage())], 1412372375);
        }
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function importSiteAction($packageKey)
    {
        try {
            $this->siteImportService->importFromPackage($packageKey);
            $this->addFlashMessage('The site has been imported.', '', null, [], 1412372266);
        } catch (\Exception $exception) {
            $logMessage = $this->throwableStorage->logThrowable($exception);
            $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
            $this->addFlashMessage('Error: During the import of the "Sites.xml" from the package "%s" an exception occurred: %s', 'Import error', Message::SEVERITY_ERROR, [htmlspecialchars($packageKey), htmlspecialchars($exception->getMessage())], 1412372375);
        }
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function importSiteAction ( $ packageKey ) { try { $ this -> siteImportService -> importFromPackage ( $ packageKey ) ; $ this -> addFlashMessage ( 'The site has been imported.' , '' , null , [ ] , 1412372266 ) ; } catch ( \ Exception $ exception ) { $ logMessage = $ this -> throwableStorage -> logThrowable ( $ exception ) ; $ this -> logger -> error ( $ logMessage , LogEnvironment :: fromMethodName ( __METHOD__ ) ) ; $ this -> addFlashMessage ( 'Error: During the import of the "Sites.xml" from the package "%s" an exception occurred: %s' , 'Import error' , Message :: SEVERITY_ERROR , [ htmlspecialchars ( $ packageKey ) , htmlspecialchars ( $ exception -> getMessage ( ) ) ] , 1412372375 ) ; } $ this -> unsetLastVisitedNodeAndRedirect ( 'index' ) ; }
Import a site from site package.

@param string $packageKey Package from where the import will come
@Flow\Validate(argumentName="$packageKey", type="\Neos\Neos\Validation\Validator\PackageKeyValidator")
@return void
Import a site from site package .