Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
RuntimeFieldInCriteriaException example
throw
new
ApiProtectionException
(
$accessor
)
;
}
if
(
!
$flag
->
isSourceAllowed
(
$context
->
getSource
(
)
::
class
)
)
{
throw
new
ApiProtectionException
(
$accessor
)
;
}
/** @var Runtime|null $runtime */
$runtime
=
$field
->
getFlag
(
Runtime::
class
)
;
if
(
$runtime
!== null
)
{
throw
new
RuntimeFieldInCriteriaException
(
$accessor
)
;
}
}
}
}
}