class NullDumper
Null dumper, negates any proxy code generation for any given service definition.
@author Marco Pivetta <ocramius@gmail.com>
@final
Hierarchy
- class \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper implements \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface
Expanded class hierarchy of NullDumper
1 file declares its use of NullDumper
- PhpDumper.php in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php
File
-
vendor/
symfony/ dependency-injection/ LazyProxy/ PhpDumper/ NullDumper.php, line 23
Namespace
Symfony\Component\DependencyInjection\LazyProxy\PhpDumperView source
class NullDumper implements DumperInterface {
public function isProxyCandidate(Definition $definition, ?bool &$asGhostObject = null, ?string $id = null) : bool {
return $asGhostObject = false;
}
public function getProxyFactoryCode(Definition $definition, string $id, string $factoryCode) : string {
return '';
}
public function getProxyCode(Definition $definition, ?string $id = null) : string {
return '';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
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 |