public static function unserializeAdvice(array $adviceData): Closure
    {
        $aspectName = $adviceData['class'];
        $methodName = $adviceData['method'];

        if (!isset(static::$localAdvicesCache["$aspectName->$methodName"])) {
            $aspect    = AspectKernel::getInstance()->getContainer()->getAspect($aspectName);
            $refMethod = new ReflectionMethod($aspectName, $methodName);
            $advice    = $refMethod->getClosure($aspect);

            static::$localAdvicesCache["$aspectName->$methodName"] = $advice;
        }

        return static::$localAdvicesCache["$aspectName->$methodName"];
    }
public static function unserializeAdvice(array $adviceData): Closure
    {
        $aspectName = $adviceData['class'];
        $methodName = $adviceData['method'];

        if (!isset(static::$localAdvicesCache["$aspectName->$methodName"])) {
            $aspect    = AspectKernel::getInstance()->getContainer()->getAspect($aspectName);
            $refMethod = new ReflectionMethod($aspectName, $methodName);
            $advice    = $refMethod->getClosure($aspect);

            static::$localAdvicesCache["$aspectName->$methodName"] = $advice;
        }

        return static::$localAdvicesCache["$aspectName->$methodName"];
    }
public static function unserializeAdvice ( array $ adviceData ) : Closure { $ aspectName = $ adviceData [ 'class' ] ; $ methodName = $ adviceData [ 'method' ] ; if ( ! isset ( static :: $ localAdvicesCache [ "$aspectName->$methodName" ] ) ) { $ aspect = AspectKernel :: getInstance ( ) -> getContainer ( ) -> getAspect ( $ aspectName ) ; $ refMethod = new ReflectionMethod ( $ aspectName , $ methodName ) ; $ advice = $ refMethod -> getClosure ( $ aspect ) ; static :: $ localAdvicesCache [ "$aspectName->$methodName" ] = $ advice ; } return static :: $ localAdvicesCache [ "$aspectName->$methodName" ] ; }
Unserialize an advice

@param array $adviceData Information about advice
Unserialize an advice