Skip to content

Commit

Permalink
Merge pull request #10 from netlogix/fix/genericmodelcontroller-subtypes
Browse files Browse the repository at this point in the history
fix: Allow subclasses of GenericModelController for PublicCommandFilter
  • Loading branch information
stephanschuler authored Apr 2, 2024
2 parents b406d0f + 5971fad commit 3c34857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ResourceArgumentIsInstanceOfPublicCommandFilter implements PointcutFilterI
{
public function matches($className, $methodName, $methodDeclaringClassName, $pointcutQueryIdentifier)
{
return $className === GenericModelController::class && $methodName === 'createAction';
return is_a($className, GenericModelController::class, true) && $methodName === 'createAction';
}

public function hasRuntimeEvaluationsDefinition()
Expand Down

0 comments on commit 3c34857

Please sign in to comment.