comparison vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
88 * 88 *
89 * @throws RuntimeException 89 * @throws RuntimeException
90 */ 90 */
91 protected function getConstructor(Definition $definition, $required) 91 protected function getConstructor(Definition $definition, $required)
92 { 92 {
93 if (is_string($factory = $definition->getFactory())) { 93 if (\is_string($factory = $definition->getFactory())) {
94 if (!function_exists($factory)) { 94 if (!\function_exists($factory)) {
95 throw new RuntimeException(sprintf('Invalid service "%s": function "%s" does not exist.', $this->currentId, $factory)); 95 throw new RuntimeException(sprintf('Invalid service "%s": function "%s" does not exist.', $this->currentId, $factory));
96 } 96 }
97 $r = new \ReflectionFunction($factory); 97 $r = new \ReflectionFunction($factory);
98 if (false !== $r->getFileName() && file_exists($r->getFileName())) { 98 if (false !== $r->getFileName() && file_exists($r->getFileName())) {
99 $this->container->fileExists($r->getFileName()); 99 $this->container->fileExists($r->getFileName());