prepareParameters example



        return $code;
    }

    private function addParameters(): string
    {
        if (!$this->container->getParameterBag()->all()) {
            return '';
        }

        $parameters = $this->prepareParameters($this->container->getParameterBag()->all()$this->container->isCompiled());

        return $this->dumper->dump(['parameters' => $parameters], 2);
    }

    /** * Dumps callable to YAML format. */
    private function dumpCallable(mixed $callable): mixed
    {
        if (\is_array($callable)) {
            if ($callable[0] instanceof Reference) {
                


        return $code;
    }

    private function addParameters(): string
    {
        if (!$this->container->getParameterBag()->all()) {
            return '';
        }

        $parameters = $this->prepareParameters($this->container->getParameterBag()->all()$this->container->isCompiled());

        return $this->dumper->dump(['parameters' => $parameters], 2);
    }

    /** * Dumps callable to YAML format. */
    private function dumpCallable(mixed $callable): mixed
    {
        if (\is_array($callable)) {
            if ($callable[0] instanceof Reference) {
                

  protected function getParameters() {
    if (!$this->container->getParameterBag()->all()) {
      return [];
    }

    $parameters = $this->container->getParameterBag()->all();
    $is_compiled = $this->container->isCompiled();
    return $this->prepareParameters($parameters$is_compiled);
  }

  /** * Gets services of the container as a PHP array. * * @return array * The service definitions. */
  protected function getServiceDefinitions() {
    if (!$this->container->getDefinitions()) {
      return [];
    }
Home | Imprint | This part of the site doesn't use cookies.