PackageSetup

readonly class \TYPO3\CMS\Core\Package\PackageSetup

Only for use in extension:setup and TYPO3 installation The class can not be final, because it is mocked in tests

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
setup()  : FlashMessage[]

Methods

__construct()

public __construct(SqlReader $sqlReader, SchemaMigrator $schemaMigrator, ExtensionConfiguration $extensionConfiguration, EventDispatcherInterface $eventDispatcher, SystemResourcePublisherInterface $resourcePublisher, PackageManager $packageManager) : mixed

Parameters

$sqlReader : SqlReader
$schemaMigrator : SchemaMigrator
$extensionConfiguration : ExtensionConfiguration
$eventDispatcher : EventDispatcherInterface
$resourcePublisher : SystemResourcePublisherInterface
$packageManager : PackageManager

setup()

public setup(array $packagesToSetUp[, bool $packageActivated = false ][, object|null $emitter = null ][, ContainerInterface|null $container = null ]) : FlashMessage[]

Parameters

$packagesToSetUp : array
$packageActivated : bool = false
$emitter : object|null = null
$container : ContainerInterface|null = null

Return values

FlashMessage[]
On this page