コード例 #1
0
 /**
  * Get the path to the module.
  *
  * @param string $slug
  *
  * @return string
  */
 protected function getModulePath($slug = null, $allowNotExists = false)
 {
     if ($slug) {
         return $this->module->getModulePath($slug, $allowNotExists);
     }
     return $this->module->getPath();
 }
コード例 #2
0
 /**
  * Get migrations path.
  *
  * @return string
  */
 protected function getMigrationPath($slug)
 {
     return $this->module->getModulePath($slug) . 'Database' . DS . 'Migrations';
 }
コード例 #3
0
 /**
  * Get migration directory path.
  *
  * @param string $slug
  *
  * @return string
  */
 protected function getMigrationPath($slug)
 {
     $path = $this->module->getModulePath($slug);
     return $path . 'Database' . DS . 'Migrations' . DS;
 }