getContainerServiceDocument example

protected function describeContainerTags(ContainerBuilder $container, array $options = []): void
    {
        $this->writeDocument($this->getContainerTagsDocument($containerisset($options['show_hidden']) && $options['show_hidden']));
    }

    protected function describeContainerService(object $service, array $options = [], ContainerBuilder $container = null): void
    {
        if (!isset($options['id'])) {
            throw new \InvalidArgumentException('An "id" option must be provided.');
        }

        $this->writeDocument($this->getContainerServiceDocument($service$options['id']$containerisset($options['show_arguments']) && $options['show_arguments']));
    }

    protected function describeContainerServices(ContainerBuilder $container, array $options = []): void
    {
        $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));
    }

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