Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getResourcePluginManager example
if
(
in_array
(
$method
,
$this
->
getMethods
(
)
)
&&
isset
(
$this
->configuration
[
$method
]
[
'supported_formats'
]
)
)
{
return
$this
->configuration
[
$method
]
[
'supported_formats'
]
;
}
return
[
]
;
}
/** * {@inheritdoc} */
public
function
getPluginCollections
(
)
{
return
[
'resource' =>
new
DefaultSingleLazyPluginCollection
(
$this
->
getResourcePluginManager
(
)
,
$this
->plugin_id,
[
]
)
,
]
;
}
/** * {@inheritdoc} */
public
function
calculateDependencies
(
)
{
parent::
calculateDependencies
(
)
;
foreach
(
$this
->
getRestResourceDependencies
(
)
->
calculateDependencies
(
$this
)
as
$type
=>
$dependencies
)
{
foreach
(
$dependencies
as
$dependency
)
{