class NullDumper

Null dumper, negates any proxy code generation for any given service definition.

@author Marco Pivetta <ocramius@gmail.com>

Hierarchy

Expanded class hierarchy of NullDumper

2 files declare their use of NullDumper
NullDumperTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php
PhpDumper.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/NullDumper.php, line 22

Namespace

Symfony\Component\DependencyInjection\LazyProxy\PhpDumper
View source
class NullDumper implements DumperInterface {

  /**
   * {@inheritDoc}
   */
  public function isProxyCandidate(Definition $definition) {
    return false;
  }

  /**
   * {@inheritDoc}
   */
  public function getProxyFactoryCode(Definition $definition, $id) {
    return '';
  }

  /**
   * {@inheritDoc}
   */
  public function getProxyCode(Definition $definition) {
    return '';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NullDumper::getProxyCode public function Generates the code for the lazy proxy. Overrides DumperInterface::getProxyCode
NullDumper::getProxyFactoryCode public function Generates the code to be used to instantiate a proxy in the dumped factory code. Overrides DumperInterface::getProxyFactoryCode
NullDumper::isProxyCandidate public function Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. Overrides DumperInterface::isProxyCandidate