comparison vendor/symfony/routing/Loader/AnnotationFileLoader.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
54 { 54 {
55 $path = $this->locator->locate($file); 55 $path = $this->locator->locate($file);
56 56
57 $collection = new RouteCollection(); 57 $collection = new RouteCollection();
58 if ($class = $this->findClass($path)) { 58 if ($class = $this->findClass($path)) {
59 $refl = new \ReflectionClass($class);
60 if ($refl->isAbstract()) {
61 return;
62 }
63
59 $collection->addResource(new FileResource($path)); 64 $collection->addResource(new FileResource($path));
60 $collection->addCollection($this->loader->load($class, $type)); 65 $collection->addCollection($this->loader->load($class, $type));
61 } 66 }
62 if (\PHP_VERSION_ID >= 70000) { 67 if (\PHP_VERSION_ID >= 70000) {
63 // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098 68 // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098