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

Breadcrumb

  1. Drupal Core 11.1.x
  2. DumperInterface.php

interface DumperInterface

Same name in this branch
  1. 11.1.x vendor/symfony/var-dumper/Cloner/DumperInterface.php \Symfony\Component\VarDumper\Cloner\DumperInterface
  2. 11.1.x vendor/symfony/dependency-injection/Dumper/DumperInterface.php \Symfony\Component\DependencyInjection\Dumper\DumperInterface

Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.

@author Marco Pivetta <ocramius@gmail.com>

Hierarchy

  • interface \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface

Expanded class hierarchy of DumperInterface

All classes that implement DumperInterface

1 file declares its use of DumperInterface
PhpDumper.php in vendor/symfony/dependency-injection/Dumper/PhpDumper.php

File

vendor/symfony/dependency-injection/LazyProxy/PhpDumper/DumperInterface.php, line 21

Namespace

Symfony\Component\DependencyInjection\LazyProxy\PhpDumper
View source
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;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DumperInterface::getProxyCode public function Generates the code for the lazy proxy. 2
DumperInterface::getProxyFactoryCode public function Generates the code to be used to instantiate a proxy in the dumped factory code. 2
DumperInterface::isProxyCandidate public function Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. 2
RSS feed
Powered by Drupal