X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FAnnotations%2FDrupalCommandAnnotationReader.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FAnnotations%2FDrupalCommandAnnotationReader.php;h=476acb3811a5ee4d6037cbcca3306576d9da2ab3;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php b/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php new file mode 100644 index 000000000..476acb381 --- /dev/null +++ b/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php @@ -0,0 +1,34 @@ +getClassAnnotation( + new \ReflectionClass($class), + 'Drupal\\Console\\Annotations\\DrupalCommand' + ); + if ($drupalCommandAnnotation) { + $annotation['extension'] = $drupalCommandAnnotation->extension?:''; + $annotation['extensionType'] = $drupalCommandAnnotation->extensionType?:''; + $annotation['dependencies'] = $drupalCommandAnnotation->dependencies?:[]; + } + + return $annotation; + } +}