Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
TestDomainObject example
public
function
cacheableResponse
(
)
{
return
new
CacheableTestResponse
(
'Hello world!'
)
;
}
public
function
cacheableResponseEarly
(
)
{
$render_array
=
$this
->
earlyRenderContent
(
)
;
return
new
CacheableTestResponse
(
$this
->renderer->
render
(
$render_array
)
)
;
}
public
function
domainObject
(
)
{
return
new
TestDomainObject
(
)
;
}
public
function
domainObjectEarly
(
)
{
$render_array
=
$this
->
earlyRenderContent
(
)
;
$this
->renderer->
render
(
$render_array
)
;
return
new
TestDomainObject
(
)
;
}
public
function
domainObjectWithAttachments
(
)
{
return
new
AttachmentsTestDomainObject
(
)
;
}