‪TYPO3CMS  11.5
TYPO3\CMS\Extensionmanager\Controller\DownloadController Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Controller\DownloadController:
TYPO3\CMS\Extensionmanager\Controller\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (ExtensionRepository $extensionRepository, ExtensionManagementService $managementService)
 
ResponseInterface checkDependenciesAction (Extension $extension)
 
ResponseInterface installFromTerAction (Extension $extension, $downloadPath='Local')
 
ResponseInterface installExtensionWithoutSystemDependencyCheckAction (Extension $extension)
 
 installDistributionAction (Extension $extension)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
ResponseInterface processRequest (RequestInterface $request)
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
never forward ($actionName, $controllerName=null, $extensionName=null, ?array $arguments=null)
 
never throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Protected Member Functions

 initializeInstallFromTerAction ()
 
ResponseInterface updateExtensionAction ()
 
 updateCommentForUpdatableVersionsAction ()
 
array installFromTer (Extension $extension, $downloadPath='Local')
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extensionmanager\Controller\AbstractController
string translate ($key, $arguments=null)
 
 handleTriggerArguments ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest ($request)
 
string resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
ResponseInterface errorAction ()
 
 addErrorFlashMessage ()
 
string bool getErrorFlashMessage ()
 
ResponseInterface null forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (?string $identifier=null)
 
ControllerContext buildControllerContext ()
 
never redirect ($actionName, $controllerName=null, $extensionName=null, ?array $arguments=null, $pageUid=null, $_=null, $statusCode=303)
 
never redirectToUri ($uri, $_=null, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 
ResponseInterface htmlResponse (?string $html=null)
 
ResponseInterface jsonResponse (?string $json=null)
 

Protected Attributes

ExtensionRepository $extensionRepository
 
ExtensionManagementService $managementService
 
string $defaultViewObjectName = JsonView::class
 
JsonView $view
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extensionmanager\Controller\AbstractController
array $triggerArguments
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
Request $request
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
array $settings
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Extensionmanager\Controller\AbstractController
const TRIGGER_RefreshModuleMenu = 'refreshModuleMenu'
 
const TRIGGER_RefreshTopbar = 'refreshTopbar'
 

Detailed Description

Controller for actions related to the TER download of an extension

This class is a specific controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 37 of file DownloadController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extensionmanager\Controller\DownloadController::__construct ( ExtensionRepository  $extensionRepository,
ExtensionManagementService  $managementService 
)

Member Function Documentation

◆ checkDependenciesAction()

ResponseInterface TYPO3\CMS\Extensionmanager\Controller\DownloadController::checkDependenciesAction ( Extension  $extension)

◆ initializeInstallFromTerAction()

TYPO3\CMS\Extensionmanager\Controller\DownloadController::initializeInstallFromTerAction ( )
protected

Defines which view object should be used for the installFromTer action

Definition at line 143 of file DownloadController.php.

◆ installDistributionAction()

◆ installExtensionWithoutSystemDependencyCheckAction()

ResponseInterface TYPO3\CMS\Extensionmanager\Controller\DownloadController::installExtensionWithoutSystemDependencyCheckAction ( Extension  $extension)

Check extension dependencies with special dependencies

Parameters
Extension$extension
Returns
‪ResponseInterface

Definition at line 176 of file DownloadController.php.

◆ installFromTer()

array TYPO3\CMS\Extensionmanager\Controller\DownloadController::installFromTer ( Extension  $extension,
  $downloadPath = 'Local' 
)
protected

Install an extension from TER Downloads the extension, resolves dependencies and installs it

Parameters
Extension$extension
string$downloadPath
Returns
‪array

Definition at line 316 of file DownloadController.php.

References TYPO3\CMS\Extensionmanager\Domain\Model\Extension\getExtensionKey().

Referenced by TYPO3\CMS\Extensionmanager\Controller\DownloadController\installDistributionAction(), and TYPO3\CMS\Extensionmanager\Controller\DownloadController\installFromTerAction().

◆ installFromTerAction()

ResponseInterface TYPO3\CMS\Extensionmanager\Controller\DownloadController::installFromTerAction ( Extension  $extension,
  $downloadPath = 'Local' 
)

Install an extension from TER action

Parameters
Extension$extension
string$downloadPath
Returns
‪ResponseInterface

Definition at line 156 of file DownloadController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse(), and TYPO3\CMS\Extensionmanager\Controller\DownloadController\installFromTer().

◆ updateCommentForUpdatableVersionsAction()

TYPO3\CMS\Extensionmanager\Controller\DownloadController::updateCommentForUpdatableVersionsAction ( )
protected

Show update comments for extensions that can be updated. Fetches update comments for all versions between the current installed and the highest version.

Definition at line 275 of file DownloadController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\jsonResponse().

◆ updateExtensionAction()

ResponseInterface TYPO3\CMS\Extensionmanager\Controller\DownloadController::updateExtensionAction ( )
protected

Update an extension. Makes no sanity check but directly searches highest available version from TER and updates. Update check is done by the list already. This method should only be called if we are sure that there is an update.

Returns
‪ResponseInterface

Definition at line 243 of file DownloadController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\addFlashMessage(), TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getLoadedExtensionListArray(), TYPO3\CMS\Extbase\Mvc\Controller\ActionController\jsonResponse(), and TYPO3\CMS\Extensionmanager\Controller\AbstractController\translate().

Member Data Documentation

◆ $defaultViewObjectName

string TYPO3\CMS\Extensionmanager\Controller\DownloadController::$defaultViewObjectName = JsonView::class
protected

Definition at line 44 of file DownloadController.php.

◆ $extensionRepository

ExtensionRepository TYPO3\CMS\Extensionmanager\Controller\DownloadController::$extensionRepository
protected

◆ $managementService

ExtensionManagementService TYPO3\CMS\Extensionmanager\Controller\DownloadController::$managementService
protected

◆ $view

JsonView TYPO3\CMS\Extensionmanager\Controller\DownloadController::$view
protected

Definition at line 48 of file DownloadController.php.