Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Extension / Extension.php
index 6f6c71f1124b5e056cb4227dbc78ef54b5516af5..f664d1435401e3c29ed096afdd8d1a92beeaa3cc 100644 (file)
@@ -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';
+    }
 }