X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FExtension%2FExtension.php;h=f664d1435401e3c29ed096afdd8d1a92beeaa3cc;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=6f6c71f1124b5e056cb4227dbc78ef54b5516af5;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/drupal/console/src/Extension/Extension.php b/vendor/drupal/console/src/Extension/Extension.php index 6f6c71f11..f664d1435 100644 --- a/vendor/drupal/console/src/Extension/Extension.php +++ b/vendor/drupal/console/src/Extension/Extension.php @@ -33,6 +33,15 @@ class Extension extends BaseExtension return $this->getSourcePath($fullPath) . '/Controller'; } + /** + * @param bool $fullPath + * @return string + */ + public function getAjaxPath($fullPath = false) + { + return $this->getSourcePath($fullPath) . '/Ajax'; + } + /** * @param bool $fullPath * @return string @@ -97,6 +106,15 @@ class Extension extends BaseExtension return $this->getSourcePath($fullPath) . '/Command/'; } + /** + * @param bool $fullPath + * @return string + */ + public function getGeneratorDirectory($fullPath=false) + { + return $this->getSourcePath($fullPath) . '/Generator/'; + } + /** * @param bool $fullPath * @return string @@ -114,4 +132,31 @@ class Extension extends BaseExtension { return $this->getPath($fullPath) . '/templates'; } + + /** + * @param bool $fullPath + * @return string + */ + public function getTestsPath($fullPath = false) + { + return $this->getPath($fullPath) . '/tests'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getTestsSourcePath($fullPath = false) + { + return $this->getTestsPath($fullPath) . '/src'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getJsTestsPath($fullPath = false) + { + return $this->getTestsSourcePath($fullPath) . '/FunctionalJavascript'; + } }