Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getMetadataDriverImpl example
public
static
function
createInstance
(
Connection
$conn
,
Configuration
$config
,
?EventManager
$eventManager
= null,
?QueryOperatorValidator
$operatorValidator
= null
)
{
if
(
!
$config
->
getMetadataDriverImpl
(
)
)
{
throw
new
MissingMappingDriverImplementation
(
)
;
}
if
(
$eventManager
!== null &&
$conn
->
getEventManager
(
)
!==
$eventManager
)
{
throw
new
MismatchedEventManager
(
)
;
}
if
(
$operatorValidator
=== null
)
{
$operatorValidator
=
new
QueryOperatorValidator
(
)
;
}