$path =
$bundle->
getPath();
if (mb_strpos($bundle->
getPath(),
$this->projectDir
) === 0
) { // make relative
$path = \
ltrim(\
mb_substr($path, \
mb_strlen($this->projectDir
)), '/'
);
} $bundles[$bundle->
getName()] =
[ 'basePath' =>
$path . '/',
'views' =>
['Resources/views'
],
'technicalName' => \
str_replace('_', '-',
$bundle->
getContainerPrefix()),
'administration' =>
[ 'path' => 'Resources/app/administration/src',
'entryFilePath' =>
$this->
getEntryFile($bundle->
getPath(), 'Resources/app/administration/src'
),
'webpack' =>
$this->
getWebpackConfig($bundle->
getPath(), 'Resources/app/administration'
),
],
'storefront' =>
[ 'path' => 'Resources/app/storefront/src',
'entryFilePath' =>
$this->
getEntryFile($bundle->
getPath(), 'Resources/app/storefront/src'
),
'webpack' =>
$this->
getWebpackConfig($bundle->
getPath(), 'Resources/app/storefront'
),
'styleFiles' =>
$this->
getStyleFiles($bundle->
getName()),
],
];