class PolicyEnforcementAspect (View source)

The central security aspect, that invokes the security interceptors.

Properties

protected PolicyEnforcement $policyEnforcementInterceptor

The policy enforcement interceptor

protected Context $securityContext

Methods

__construct(PolicyEnforcement $policyEnforcementInterceptor, Context $securityContext)

No description

mixed
enforcePolicy(JoinPointInterface $joinPoint)

The policy enforcement advice. This advices applies the security enforcement interceptor to all methods configured in the policy.

Details

__construct(PolicyEnforcement $policyEnforcementInterceptor, Context $securityContext)

No description

Parameters

PolicyEnforcement $policyEnforcementInterceptor

The policy enforcement interceptor

Context $securityContext

mixed enforcePolicy(JoinPointInterface $joinPoint)

The policy enforcement advice. This advices applies the security enforcement interceptor to all methods configured in the policy.

Note: If we have some kind of "run as" functionality in the future, we would have to manipulate the security context before calling the policy enforcement interceptor

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted