Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getMappingDriverBundleConfigDefaults example
$bundle
=
new
\
ReflectionClass
(
$class
)
;
$bundleMetadata
=
$container
->
getParameter
(
'kernel.bundles_metadata'
)
[
$name
]
;
break
;
}
}
if
(
null ===
$bundle
)
{
throw
new
\
InvalidArgumentException
(
sprintf
(
'Bundle "%s" does not exist or it is not enabled.',
$mappingName
)
)
;
}
$mappingConfig
=
$this
->
getMappingDriverBundleConfigDefaults
(
$mappingConfig
,
$bundle
,
$container
,
$bundleMetadata
[
'path'
]
)
;
if
(
!
$mappingConfig
)
{
continue
;
}
}
elseif
(
!
$mappingConfig
[
'type'
]
)
{
$mappingConfig
[
'type'
]
=
$this
->
detectMappingType
(
$mappingConfig
[
'dir'
]
,
$container
)
;
}
$this
->
assertValidMappingConfiguration
(
$mappingConfig
,
$objectManager
[
'name'
]
)
;
$this
->
setMappingDriverConfig
(
$mappingConfig
,
$mappingName
)
;
$this
->
setMappingDriverAlias
(
$mappingConfig
,
$mappingName
)
;
}
}