public static function getJoinPoint($joinPointName, $namespace)
{
/** @var LazyAdvisorAccessor $accessor */
static $accessor = null;
if (!$accessor) {
$accessor = AspectKernel::getInstance()->getContainer()->get('aspect.advisor.accessor');
}
$advices = self::$functionAdvices[$namespace][AspectContainer::FUNCTION_PREFIX][$joinPointName];
$filledAdvices = [];
foreach ($advices as $advisorName) {
$filledAdvices[] = $accessor->{$advisorName};
}
return new ReflectionFunctionInvocation($joinPointName, $filledAdvices);
}