Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doSearchPageUpdate example
$this
->
installConfig
(
[
'action', 'block', 'filter', 'image'
]
)
;
$this
->container->
get
(
'theme_installer'
)
->
install
(
[
'olivero'
]
)
;
$config_storage
=
$this
->container->
get
(
'config.storage'
)
;
// Ensure the 'system.site' config.
$config_storage
->
write
(
'system.site',
[
'uuid'
=>
(
new
Php
(
)
)
->
generate
(
)
]
)
;
$this
->
copyConfig
(
$config_storage
,
$this
->container->
get
(
'config.storage.sync'
)
)
;
$this
->
doActionUpdate
(
)
;
$this
->
doBlockUpdate
(
)
;
$this
->
doFilterFormatUpdate
(
)
;
$this
->
doImageStyleUpdate
(
)
;
$this
->
doSearchPageUpdate
(
)
;
$this
->
doThirdPartySettingsUpdate
(
)
;
}
/** * Tests updating an action during import. */
protected
function
doActionUpdate
(
)
{
// Create a test action with a known label.
$name
= 'system.action.apple';
$entity
= Action::
create
(
[
'id' => 'apple',