private function showAspectPointcutsAndAdvisors(SymfonyStyle $io, Aspect $aspect): void
    {
        /** @var AspectLoader $aspectLoader */
        $container    = $this->aspectKernel->getContainer();
        $aspectLoader = $container->get('aspect.loader');
        $io->writeln('<comment>Pointcuts and advices</comment>');

        $aspectItems     = $aspectLoader->load($aspect);
        $aspectItemsInfo = [];
        foreach ($aspectItems as $itemId => $item) {
            $itemType = 'Unknown';
            if ($item instanceof Pointcut) {
                $itemType = 'Pointcut';
            }
            if ($item instanceof Advisor) {
                $itemType = 'Advisor';
            }
            $aspectItemsInfo[] = [$itemType, $itemId];
        }
        $io->table(['Type', 'Identifier'], $aspectItemsInfo);
    }
private function showAspectPointcutsAndAdvisors(SymfonyStyle $io, Aspect $aspect): void
    {
        /** @var AspectLoader $aspectLoader */
        $container    = $this->aspectKernel->getContainer();
        $aspectLoader = $container->get('aspect.loader');
        $io->writeln('<comment>Pointcuts and advices</comment>');

        $aspectItems     = $aspectLoader->load($aspect);
        $aspectItemsInfo = [];
        foreach ($aspectItems as $itemId => $item) {
            $itemType = 'Unknown';
            if ($item instanceof Pointcut) {
                $itemType = 'Pointcut';
            }
            if ($item instanceof Advisor) {
                $itemType = 'Advisor';
            }
            $aspectItemsInfo[] = [$itemType, $itemId];
        }
        $io->table(['Type', 'Identifier'], $aspectItemsInfo);
    }
private function showAspectPointcutsAndAdvisors ( SymfonyStyle $ io , Aspect $ aspect ) : void { /** @var AspectLoader $aspectLoader */ $ container = $ this -> aspectKernel -> getContainer ( ) ; $ aspectLoader = $ container -> get ( 'aspect.loader' ) ; $ io -> writeln ( '<comment>Pointcuts and advices</comment>' ) ; $ aspectItems = $ aspectLoader -> load ( $ aspect ) ; $ aspectItemsInfo = [ ] ; foreach ( $ aspectItems as $ itemId => $ item ) { $ itemType = 'Unknown' ; if ( $ item instanceof Pointcut ) { $ itemType = 'Pointcut' ; } if ( $ item instanceof Advisor ) { $ itemType = 'Advisor' ; } $ aspectItemsInfo [ ] = [ $ itemType , $ itemId ] ; } $ io -> table ( [ 'Type' , 'Identifier' ] , $ aspectItemsInfo ) ; }
Shows an information about aspect pointcuts and advisors
Shows an information about aspect pointcuts and advisors