Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / annotated-command / src / Parser / Internal / CommandDocBlockParserFactory.php
index fe1bdecd9f175c2f3685c75dffbc92ed2c9b45c9..3421b7493dd2b10ee32bf656fcdd0577bea185a8 100644 (file)
@@ -15,14 +15,6 @@ class CommandDocBlockParserFactory
 
     private static function create(CommandInfo $commandInfo, \ReflectionMethod $reflection)
     {
-        if (static::hasReflectionDocBlock3()) {
-            return new CommandDocBlockParser3($commandInfo, $reflection);
-        }
-        return new CommandDocBlockParser2($commandInfo, $reflection);
-    }
-
-    private static function hasReflectionDocBlock3()
-    {
-        return class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory');
+        return new BespokeDocBlockParser($commandInfo, $reflection);
     }
 }