public function onAstBuild(GenericEvent $event)
    {
        $context = $event->getArguments();

        if (isset($context['node'])) {
            $context['node'] = sprintf(
                '%s with attributes %s',
                $context['node']->getType(),
                json_encode($context['node']->getAttributes())
            );
        }
        $this->logger->debug('Building AST, process {method} {node}', $context);
    }
public function onAstBuild(GenericEvent $event)
    {
        $context = $event->getArguments();

        if (isset($context['node'])) {
            $context['node'] = sprintf(
                '%s with attributes %s',
                $context['node']->getType(),
                json_encode($context['node']->getAttributes())
            );
        }
        $this->logger->debug('Building AST, process {method} {node}', $context);
    }
public function onAstBuild ( GenericEvent $ event ) { $ context = $ event -> getArguments ( ) ; if ( isset ( $ context [ 'node' ] ) ) { $ context [ 'node' ] = sprintf ( '%s with attributes %s' , $ context [ 'node' ] -> getType ( ) , json_encode ( $ context [ 'node' ] -> getAttributes ( ) ) ) ; } $ this -> logger -> debug ( 'Building AST, process {method} {node}' , $ context ) ; }
Logs BUILD event.

@param Event $event Current event emitted by the builder

@return void
Logs BUILD event .