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