private function loadAdvisorsList(AspectContainer $aspectContainer): array
    {
        /** @var AspectLoader $aspectLoader */
        $aspectLoader   = $aspectContainer->get('aspect.cached.loader');
        $aspects        = $aspectLoader->getUnloadedAspects();
        foreach ($aspects as $aspect) {
            $aspectLoader->loadAndRegister($aspect);
        }
        $advisors = $aspectContainer->getByTag('advisor');

        return $advisors;
    }
private function loadAdvisorsList(AspectContainer $aspectContainer): array
    {
        /** @var AspectLoader $aspectLoader */
        $aspectLoader   = $aspectContainer->get('aspect.cached.loader');
        $aspects        = $aspectLoader->getUnloadedAspects();
        foreach ($aspects as $aspect) {
            $aspectLoader->loadAndRegister($aspect);
        }
        $advisors = $aspectContainer->getByTag('advisor');

        return $advisors;
    }
private function loadAdvisorsList ( AspectContainer $ aspectContainer ) : array { /** @var AspectLoader $aspectLoader */ $ aspectLoader = $ aspectContainer -> get ( 'aspect.cached.loader' ) ; $ aspects = $ aspectLoader -> getUnloadedAspects ( ) ; foreach ( $ aspects as $ aspect ) { $ aspectLoader -> loadAndRegister ( $ aspect ) ; } $ advisors = $ aspectContainer -> getByTag ( 'advisor' ) ; return $ advisors ; }
Collects list of advisors from the given aspect container

@return Advisor[] List of advisors in the container
Collects list of advisors from the given aspect container