X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FAnnotations%2FDrupalCommandAnnotationReader.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FAnnotations%2FDrupalCommandAnnotationReader.php;h=a8f83befca2128fa40f088ad8108c3fb87ce7bfd;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=476acb3811a5ee4d6037cbcca3306576d9da2ab3;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php b/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php index 476acb381..a8f83befc 100644 --- a/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php +++ b/vendor/drupal/console/src/Annotations/DrupalCommandAnnotationReader.php @@ -17,16 +17,22 @@ class DrupalCommandAnnotationReader */ public function readAnnotation($class) { - $annotation = []; + $annotation = [ + 'extension' => null, + 'extensionType' => null, + 'dependencies' => [], + 'bootstrap' => 'installed' + ]; $reader = new AnnotationReader(); $drupalCommandAnnotation = $reader->getClassAnnotation( new \ReflectionClass($class), 'Drupal\\Console\\Annotations\\DrupalCommand' ); if ($drupalCommandAnnotation) { - $annotation['extension'] = $drupalCommandAnnotation->extension?:''; - $annotation['extensionType'] = $drupalCommandAnnotation->extensionType?:''; + $annotation['extension'] = $drupalCommandAnnotation->extension?:null; + $annotation['extensionType'] = $drupalCommandAnnotation->extensionType?:null; $annotation['dependencies'] = $drupalCommandAnnotation->dependencies?:[]; + $annotation['bootstrap'] = $drupalCommandAnnotation->bootstrap?:'install'; } return $annotation;