Skip to content

Commit

Permalink
Display class which implement IListModificator in "Condition modifica…
Browse files Browse the repository at this point in the history
…tor" selector
  • Loading branch information
Olivier Grandmougin committed Apr 8, 2021
1 parent 2773b94 commit cdf2dbd
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,14 @@ public function getClassesAction(Request $request)
foreach ($classes as $class) {
try {
$reflect = new \ReflectionClass($class);
if ($reflect->implementsInterface(
'\\Elements\\Bundle\\ExportToolkitBundle\\ExportService\\IConditionModificator'
if ((
$reflect->implementsInterface(
'\\Elements\\Bundle\\ExportToolkitBundle\\ExportService\\IConditionModificator'
)
||
$reflect->implementsInterface(
'\\Elements\\Bundle\\ExportToolkitBundle\\ExportService\\IListModificator'
)
) && $reflect->isInstantiable()
) {
$implementsIConfig[] = [$class];
Expand Down

0 comments on commit cdf2dbd

Please sign in to comment.