getContainerAliasDocument example

$this->writeDocument($this->getContainerServicesDocument($container$options['tag'] ?? null, isset($options['show_hidden']) && $options['show_hidden']isset($options['show_arguments']) && $options['show_arguments']$options['filter'] ?? null, $options['id'] ?? null));
    }

    protected function describeContainerDefinition(Definition $definition, array $options = [], ContainerBuilder $container = null): void
    {
        $this->writeDocument($this->getContainerDefinitionDocument($definition$options['id'] ?? null, isset($options['omit_tags']) && $options['omit_tags']isset($options['show_arguments']) && $options['show_arguments']$container));
    }

    protected function describeContainerAlias(Alias $alias, array $options = [], ContainerBuilder $container = null): void
    {
        $dom = new \DOMDocument('1.0', 'UTF-8');
        $dom->appendChild($dom->importNode($this->getContainerAliasDocument($alias$options['id'] ?? null)->childNodes->item(0), true));

        if (!$container) {
            $this->writeDocument($dom);

            return;
        }

        $dom->appendChild($dom->importNode($this->getContainerDefinitionDocument($container->getDefinition((string) $alias)(string) $alias, false, false, $container)->childNodes->item(0), true));

        $this->writeDocument($dom);
    }

    
Home | Imprint | This part of the site doesn't use cookies.