comparison vendor/symfony/dependency-injection/LazyProxy/PhpDumper/DumperInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
21 interface DumperInterface 21 interface DumperInterface
22 { 22 {
23 /** 23 /**
24 * Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. 24 * Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
25 * 25 *
26 * @param Definition $definition
27 *
28 * @return bool 26 * @return bool
29 */ 27 */
30 public function isProxyCandidate(Definition $definition); 28 public function isProxyCandidate(Definition $definition);
31 29
32 /** 30 /**
33 * Generates the code to be used to instantiate a proxy in the dumped factory code. 31 * Generates the code to be used to instantiate a proxy in the dumped factory code.
34 * 32 *
35 * @param Definition $definition 33 * @param Definition $definition
36 * @param string $id service identifier 34 * @param string $id Service identifier
37 * @param string $methodName the method name to get the service, will be added to the interface in 4.0 35 * @param string $factoryCode The code to execute to create the service, will be added to the interface in 4.0
38 * 36 *
39 * @return string 37 * @return string
40 */ 38 */
41 public function getProxyFactoryCode(Definition $definition, $id/**, $methodName = null */); 39 public function getProxyFactoryCode(Definition $definition, $id/**, $factoryCode = null */);
42 40
43 /** 41 /**
44 * Generates the code for the lazy proxy. 42 * Generates the code for the lazy proxy.
45 *
46 * @param Definition $definition
47 * 43 *
48 * @return string 44 * @return string
49 */ 45 */
50 public function getProxyCode(Definition $definition); 46 public function getProxyCode(Definition $definition);
51 } 47 }