Go\Aop\Support\PointcutBuilder::before PHP Method

before() public method

Declares the "Before" hook for specific pointcut expression
public before ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call
    public function before($pointcutExpression, Closure $advice)
    {
        $advice = new BeforeInterceptor($advice, 0, $pointcutExpression);
        $this->registerAdviceInContainer($pointcutExpression, $advice);
    }