Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / routing / Loader / AnnotationClassLoader.php
index 62ad9c3f9fae086806dda84e3c5ebab0a9d7a2b3..8463673e2d1ac996705a1799867799639ff34588 100644 (file)
@@ -220,11 +220,8 @@ abstract class AnnotationClassLoader implements LoaderInterface
         );
 
         if ($annot = $this->reader->getClassAnnotation($class, $this->routeAnnotationClass)) {
-            // for BC reasons
             if (null !== $annot->getPath()) {
                 $globals['path'] = $annot->getPath();
-            } elseif (null !== $annot->getPattern()) {
-                $globals['path'] = $annot->getPattern();
             }
 
             if (null !== $annot->getRequirements()) {