Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

DumperInterface.php

Same filename in this branch
  1. 11.1.x vendor/symfony/var-dumper/Cloner/DumperInterface.php
  2. 11.1.x vendor/symfony/dependency-injection/Dumper/DumperInterface.php

Namespace

Symfony\Component\DependencyInjection\LazyProxy\PhpDumper

File

vendor/symfony/dependency-injection/LazyProxy/PhpDumper/DumperInterface.php

View source
<?php


/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Symfony\Component\DependencyInjection\LazyProxy\PhpDumper;

use Symfony\Component\DependencyInjection\Definition;

/**
 * Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.
 *
 * @author Marco Pivetta <ocramius@gmail.com>
 */
interface DumperInterface {
    
    /**
     * Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
     *
     * @param bool|null &$asGhostObject Set to true after the call if the proxy is a ghost object
     */
    public function isProxyCandidate(Definition $definition, ?bool &$asGhostObject = null, ?string $id = null) : bool;
    
    /**
     * Generates the code to be used to instantiate a proxy in the dumped factory code.
     */
    public function getProxyFactoryCode(Definition $definition, string $id, string $factoryCode) : string;
    
    /**
     * Generates the code for the lazy proxy.
     */
    public function getProxyCode(Definition $definition, ?string $id = null) : string;

}

Interfaces

Title Deprecated Summary
DumperInterface Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.
RSS feed
Powered by Drupal