phpArrayDumperClass example



    // If there is no container and no cached container definition, build a new     // one from scratch.     if (!isset($container) && !isset($container_definition)) {
      $container = $this->compileContainer();

      // Only dump the container if dumping is allowed. This is useful for       // KernelTestBase, which never wants to use the real container, but always       // the container builder.       if ($this->allowDumping) {
        $dumper = new $this->phpArrayDumperClass($container);
        $container_definition = $dumper->getArray();
      }
    }

    // The container was rebuilt successfully.     $this->containerNeedsRebuild = FALSE;

    // Only create a new class if we have a container definition.     if (isset($container_definition)) {
      // Drupal provides two dynamic parameters to access specific paths that       // are determined from the request.
Home | Imprint | This part of the site doesn't use cookies.