You are here

interface DumperInterface in Service Container 7

Same name in this branch
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/DumperInterface.php \Symfony\Component\DependencyInjection\Dumper\DumperInterface
  2. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface
Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\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

2 files declare their use of DumperInterface
PhpDumper.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
ProxyDumper.php in lib/Drupal/Component/ProxyBuilder/ProxyDumper.php
Contains \Drupal\Component\ProxyBuilder\ProxyDumper.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 Definition $definition
   *
   * @return bool
   */
  public function isProxyCandidate(Definition $definition);

  /**
   * Generates the code to be used to instantiate a proxy in the dumped factory code.
   *
   * @param Definition $definition
   * @param string     $id         service identifier
   *
   * @return string
   */
  public function getProxyFactoryCode(Definition $definition, $id);

  /**
   * Generates the code for the lazy proxy.
   *
   * @param Definition $definition
   *
   * @return string
   */
  public function getProxyCode(Definition $definition);

}

Members

Namesort descending Modifiers Type Description 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