You are here

class NullDumper in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php
PhpDumper.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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