You are here

class NullDumper in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/LazyProxy/PhpDumper/NullDumper.php \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\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 vendor/symfony/dependency-injection/Tests/LazyProxy/PhpDumper/NullDumperTest.php
PhpDumper.php in vendor/symfony/dependency-injection/Dumper/PhpDumper.php

File

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

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