X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FExtension%2FExtension.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FExtension%2FExtension.php;h=6f6c71f1124b5e056cb4227dbc78ef54b5516af5;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/src/Extension/Extension.php b/vendor/drupal/console/src/Extension/Extension.php new file mode 100644 index 000000000..6f6c71f11 --- /dev/null +++ b/vendor/drupal/console/src/Extension/Extension.php @@ -0,0 +1,117 @@ +root . '/' . parent::getPath(); + } + + return parent::getPath(); + } + + /** + * @param bool $fullPath + * @return string + */ + public function getControllerPath($fullPath = false) + { + return $this->getSourcePath($fullPath) . '/Controller'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getConfigInstallDirectory($fullPath = false) + { + return $this->getPath($fullPath) .'/config/install'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getConfigOptionalDirectory($fullPath = false) + { + return $this->getPath($fullPath) .'/config/optional'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getSourcePath($fullPath=false) + { + return $this->getPath($fullPath) . '/src'; + } + + /** + * @param string $authenticationType + * @param boolean $fullPath + * @return string + */ + public function getAuthenticationPath($authenticationType, $fullPath = false) + { + return $this->getSourcePath($fullPath) .'/Authentication/' . $authenticationType; + } + + /** + * @param $fullPath + * @return string + */ + public function getFormPath($fullPath = false) + { + return $this->getSourcePath($fullPath) . '/Form'; + } + + /** + * @param $fullPath + * @return string + */ + public function getRoutingPath($fullPath = false) + { + return $this->getSourcePath($fullPath) . '/Routing'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getCommandDirectory($fullPath=false) + { + return $this->getSourcePath($fullPath) . '/Command/'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getEntityPath($fullPath = false) + { + return $this->getSourcePath($fullPath) . '/Entity'; + } + + /** + * @param bool $fullPath + * @return string + */ + public function getTemplatePath($fullPath = false) + { + return $this->getPath($fullPath) . '/templates'; + } +}