Neos\Flow\Aop\Builder\ProxyClassBuilder::getMatchingInterfaceIntroductions PHP Метод

getMatchingInterfaceIntroductions() защищенный Метод

Traverses all aspect containers and returns an array of interface introductions which match the target class.
protected getMatchingInterfaceIntroductions ( array &$aspectContainers, string $targetClassName ) : array
$aspectContainers array
$targetClassName string Name of the class the pointcut should match with
Результат array array of interface names
    protected function getMatchingInterfaceIntroductions(array &$aspectContainers, $targetClassName)
    {
        $introductions = [];
        foreach ($aspectContainers as $aspectContainer) {
            if (!$aspectContainer->getCachedTargetClassNameCandidates()->hasClassName($targetClassName)) {
                continue;
            }
            foreach ($aspectContainer->getInterfaceIntroductions() as $introduction) {
                $pointcut = $introduction->getPointcut();
                if ($pointcut->matches($targetClassName, null, null, uniqid())) {
                    $introductions[] = $introduction;
                }
            }
        }
        return $introductions;
    }