Drupal investigation

NullDumper.php 948B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection\LazyProxy\PhpDumper;
  11. use Symfony\Component\DependencyInjection\Definition;
  12. /**
  13. * Null dumper, negates any proxy code generation for any given service definition.
  14. *
  15. * @author Marco Pivetta <ocramius@gmail.com>
  16. */
  17. class NullDumper implements DumperInterface
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function isProxyCandidate(Definition $definition)
  23. {
  24. return false;
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function getProxyFactoryCode(Definition $definition, $id)
  30. {
  31. return '';
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function getProxyCode(Definition $definition)
  37. {
  38. return '';
  39. }
  40. }