Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getPluginNameFromPackage example
$errors
->
add
(
$e
)
;
continue
;
}
if
(
!
$this
->
isShopwarePluginType
(
$package
)
|| !
$this
->
isPluginComposerValid
(
$package
)
)
{
$this
->
addError
(
$pluginPath
,
$errors
)
;
continue
;
}
$pluginName
=
$this
->
getPluginNameFromPackage
(
$package
)
;
$plugins
[
$pluginName
]
=
(
new
PluginFromFileSystemStruct
(
)
)
->
assign
(
[
'baseClass' =>
$pluginName
,
'path' =>
$filesystemPlugin
->
getPathname
(
)
,
'managedByComposer' => false,
'composerPackage' =>
$package
,
]
)
;
}
}
catch
(
DirectoryNotFoundException
)
{
}