core-bundle/src/DependencyInjection/Compiler/DataContainerCallbackPass.php
public function process(ContainerBuilder $container): void
    {
        if (!$container->hasDefinition('contao.listener.data_container_callback')) {
            return;
        }

        $callbacks = $this->getCallbacks($container);

        if (empty($callbacks)) {
            return;
        }

        $definition = $container->getDefinition('contao.listener.data_container_callback');
        $definition->addMethodCall('setCallbacks', [$callbacks]);
    }
public function process(ContainerBuilder $container): void
    {
        if (!$container->hasDefinition('contao.listener.data_container_callback')) {
            return;
        }

        $callbacks = $this->getCallbacks($container);

        if (empty($callbacks)) {
            return;
        }

        $definition = $container->getDefinition('contao.listener.data_container_callback');
        $definition->addMethodCall('setCallbacks', [$callbacks]);
    }
public function process ( ContainerBuilder $ container ) : void { if ( ! $ container -> hasDefinition ( 'contao.listener.data_container_callback' ) ) { return ; } $ callbacks = $ this -> getCallbacks ( $ container ) ; if ( empty ( $ callbacks ) ) { return ; } $ definition = $ container -> getDefinition ( 'contao.listener.data_container_callback' ) ; $ definition -> addMethodCall ( 'setCallbacks' , [ $ callbacks ] ) ; }
{@inheritdoc}
{