dumpValue example

<?= $class; ?> </h3> <?php } ?> <?php if ($exception['message'] && $index > 1) { ?> <p class="break-long-words trace-message"><?= $this->escape($exception['message']); ?></p> <?php } ?> </div> <?php if (\count($exception['data'] ?? [])) { ?> <details class="exception-properties-wrapper"> <summary>Show exception properties</summary> <div class="exception-properties"> <?= $this->dumpValue($exception['data']) ?> </div> </details> <?php } ?> </div> <div id="trace-html-<?= $index; ?>" class="sf-toggle-content"> <?php         $isFirstUserCode = true;
        foreach ($exception['trace'] as $i => $trace) {
            $isVendorTrace = $trace['file'] && (str_contains($trace['file'], '/vendor/') || str_contains($trace['file'], '/var/cache/'));
            $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
            

                }
            }

            foreach (array_diff_key(array_flip($lineage)$this->inlinedRequires) as $file => $class) {
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        foreach ($this->inlinedDefinitions as $def) {
            if ($file = $def->getFile()) {
                $file = $this->dumpValue($file);
                $file = '(' === $file[0] ? substr($file, 1, -1) : $file;
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        if ('' !== $code) {
            $code .= "\n";
        }

        return $code;
    }

    


        if ($definition->isAbstract()) {
            $code .= " abstract: true\n";
        }

        if ($definition->isLazy()) {
            $code .= " lazy: true\n";
        }

        if ($definition->getArguments()) {
            $code .= sprintf(" arguments: %s\n", $this->dumper->dump($this->dumpValue($definition->getArguments()), 0));
        }

        if ($definition->getProperties()) {
            $code .= sprintf(" properties: %s\n", $this->dumper->dump($this->dumpValue($definition->getProperties()), 0));
        }

        if ($definition->getMethodCalls()) {
            $code .= sprintf(" calls:\n%s\n", $this->dumper->dump($this->dumpValue($definition->getMethodCalls()), 1, 12));
        }

        if (!$definition->isShared()) {
            


        if ($definition->isAbstract()) {
            $code .= " abstract: true\n";
        }

        if ($definition->isLazy()) {
            $code .= " lazy: true\n";
        }

        if ($definition->getArguments()) {
            $code .= sprintf(" arguments: %s\n", $this->dumper->dump($this->dumpValue($definition->getArguments()), 0));
        }

        if ($definition->getProperties()) {
            $code .= sprintf(" properties: %s\n", $this->dumper->dump($this->dumpValue($definition->getProperties()), 0));
        }

        if ($definition->getMethodCalls()) {
            $code .= sprintf(" calls:\n%s\n", $this->dumper->dump($this->dumpValue($definition->getMethodCalls()), 1, 12));
        }

        if (!$definition->isShared()) {
            

                }
            }

            foreach (array_diff_key(array_flip($lineage)$this->inlinedRequires) as $file => $class) {
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        foreach ($this->inlinedDefinitions as $def) {
            if ($file = $def->getFile()) {
                $file = $this->dumpValue($file);
                $file = '(' === $file[0] ? substr($file, 1, -1) : $file;
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        if ('' !== $code) {
            $code .= "\n";
        }

        return $code;
    }

    
/** * {@inheritdoc} */
  protected function dumpCollection($collection, &$resolve = FALSE) {
    $code = [];

    foreach ($collection as $key => $value) {
      if (is_array($value)) {
        $code[$key] = $this->dumpCollection($value);
      }
      else {
        $code[$key] = $this->dumpValue($value);
      }
    }

    return $code;
  }

  /** * {@inheritdoc} */
  protected function getServiceCall($id$invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
    if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
      
foreach ($collection as $key => $value) {
      if (is_array($value)) {
        $resolve_collection = FALSE;
        $code[$key] = $this->dumpCollection($value$resolve_collection);

        if ($resolve_collection) {
          $resolve = TRUE;
        }
      }
      else {
        $code[$key] = $this->dumpValue($value);
        if (is_object($code[$key])) {
          $resolve = TRUE;
        }
      }
    }

    if (!$resolve) {
      return $collection;
    }

    return (object) [
      
<?= $class; ?> </h3> <?php } ?> <?php if ($exception['message'] && $index > 1) { ?> <p class="break-long-words trace-message"><?= $this->escape($exception['message']); ?></p> <?php } ?> </div> <?php if (\count($exception['data'] ?? [])) { ?> <details class="exception-properties-wrapper"> <summary>Show exception properties</summary> <div class="exception-properties"> <?= $this->dumpValue($exception['data']) ?> </div> </details> <?php } ?> </div> <div id="trace-html-<?= $index; ?>" class="sf-toggle-content"> <?php         $isFirstUserCode = true;
        foreach ($exception['trace'] as $i => $trace) {
            $isVendorTrace = $trace['file'] && (str_contains($trace['file'], '/vendor/') || str_contains($trace['file'], '/var/cache/'));
            $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
            

                }
            }

            foreach (array_diff_key(array_flip($lineage)$this->inlinedRequires) as $file => $class) {
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        foreach ($this->inlinedDefinitions as $def) {
            if ($file = $def->getFile()) {
                $file = $this->dumpValue($file);
                $file = '(' === $file[0] ? substr($file, 1, -1) : $file;
                $code .= sprintf(" include_once %s;\n", $file);
            }
        }

        if ('' !== $code) {
            $code .= "\n";
        }

        return $code;
    }

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