Get path to migrations config file from package.

@return string|null
349190
protected function getMigrationsConfig()
    {
        $dir = $this->getPackageDir();

        // specific location
        if ($migrations = $this->getPackageOptionFile('anime-db-migrations')) {
            return $dir.$migrations;
        }

        if (file_exists($dir.'migrations.yml')) {
            return $dir.'migrations.yml';
        } elseif (file_exists($dir.'migrations.xml')) {
            return $dir.'migrations.xml';
        }

        return;
    }
1280460
private function getConfigPath()
    {
        //====================================================================//
        //  Load Module Configuration
        $cfg = Splash::configuration();
        //====================================================================//
        //  Check if Custom Configuration Path is Defined
        $cfgPath = Splash::getLocalPath()."/configuration.json";
        if (isset($cfg->ConfiguratorPath) && is_string($cfg->ConfiguratorPath)) {
            $cfgPath = $cfg->ConfiguratorPath;
        }
        //====================================================================//
        //  Check if Custom Configuration File Exists
        Splash::log()->deb("Try Loading Custom Configuration From: ".$cfgPath);
        if (!is_file($cfgPath)) {
            return false;
        }

        return $cfgPath;
    }
953527
private function exportMigrations()
	{
		$databaseFolder = base_path( 'database/migrations/vendor/' . $this->currentStructure['vendor'] . '/' . $this->currentStructure['module'] . '/' );
		if( ! file_exists( $databaseFolder ) ) {
			return $this->line( 'no migrations to move' );
		}
		$this->moveFilesToResources( $databaseFolder );
	}
79497
public function getDestinationPath($package)
    {
        $packages = $this->config->getPackages();

        $namespace = isset($packages[$package]) ? $packages[$package] : null;

        if (is_null($namespace)) {
            throw new \InvalidArgumentException("Configuration not found.");
        }

        return $this->publishPath .str_replace('/', DS, "/Packages/{$namespace}");
    }
467901
protected function getMigrationPath($path = null)
    {
        $name = $this->laravel->databasePath() . DIRECTORY_SEPARATOR . 'migrations';

        if (!empty($path)) {
            $name .= DIRECTORY_SEPARATOR . $path;
        }

        return $name;
    }
1342319
protected function getOutstanding(): array
	{
		$migrations = $this->getMigrationsFilteredByConnection();

		if(!empty($migrations))
		{
			foreach($this->getMigrated() as $migrated)
			{
				foreach($migrations as $key => $migration)
				{
					if($migrated->package === $migration->package && $migrated->version === $migration->version)
					{
						unset($migrations[$key]);
					}
				}
			}

			usort($migrations, function($a, $b)
			{
				return strcmp($a->version, $b->version);
			});
		}

		return $migrations;
	}
897052
public function getPlainPath() : string
    {
        // Diretório especificado
        $path = $this->getArgument('package_path');
        $pkg_root = ($path[0] == "/") ? rtrim($path, "/") : rtrim(base_path($path), "/");

        // Contém o diretório src?
        $src_path = $pkg_root . DIRECTORY_SEPARATOR . "src";
        if (is_dir($src_path) == true) {
            return $src_path;
        }

        return $pkg_root;
    }
416364
protected static function get_config_file_path() {
        global $CFG;
        if (!empty($CFG->altcacheconfigpath)) {
            $path = $CFG->altcacheconfigpath;
            if (is_dir($path) && is_writable($path)) {
                // Its a writable directory, thats fine.
                return $path.'/cacheconfig.php';
            } else if (is_writable(dirname($path)) && (!file_exists($path) || is_writable($path))) {
                // Its a file, either it doesn't exist and the directory is writable or the file exists and is writable.
                return $path;
            }
        }
        // Return the default location within dataroot.
        return $CFG->dataroot.'/muc/config.php';
    }
1359569
public function get_project_config_path() {
		$config_files = array(
			'wp-cli.local.yml',
			'wp-cli.yml',
		);

		// Stop looking upward when we find we have emerged from a subdirectory
		// installation into a parent installation
		$project_config_path = Utils\find_file_upward(
			$config_files,
			getcwd(),
			function ( $dir ) {
				static $wp_load_count = 0;
				$wp_load_path         = $dir . DIRECTORY_SEPARATOR . 'wp-load.php';
				if ( file_exists( $wp_load_path ) ) {
					++ $wp_load_count;
				}
				return $wp_load_count > 1;
			}
		);

		$this->project_config_path_debug = 'No project config found';

		if ( ! empty( $project_config_path ) ) {
			$this->project_config_path_debug = 'Using project config: ' . $project_config_path;
		}

		return $project_config_path;
	}
1108307
protected function getMigrationPaths()
    {
        // If the package is in the list of migration paths we received we will put
        // the migrations in that path. Otherwise, we will assume the package is
        // is in the package directories and will place them in that location.
        if (! is_null($package = $this->option('package'))) {
            return $this->getPackageMigrationPaths($package);
        }

        return parent::getMigrationPaths();
    }
834037
public static function GetPackagePath () {
		$called_class = static::class;
		$offset = strpos($called_class, "\\") + 1;
		return str_replace("\\", '/', substr($called_class, 0, strpos($called_class, "\\", $offset)));
	}
1216624
public function getConfigurationPath($name = null)
    {
        if (! $name) {
            $appConfigDir = base_path('config') . '/';

            if (file_exists($appConfigDir)) {
                return $appConfigDir;
            } elseif (file_exists($path = __DIR__ . '/../config/')) {
                return $path;
            }
        } else {
            $appConfigPath = base_path('config') . '/' . $name . '.php';

            if (file_exists($appConfigPath)) {
                return $appConfigPath;
            } elseif (file_exists($path = __DIR__ . '/../config/' . $name . '.php')) {
                return $path;
            }
        }

        return '';
    }
894429
protected function getMigrationPath()
    {
        $path = $this->input->getOption('path');

        // First, we will check to see if a path option has been defined. If it has
        // we will use the path relative to the root of this installation folder
        // so that migrations may be run for any path within the applications.
        if (! is_null($path)) {
            return $this->container['path.base'] .DS .$path;
        }

        return $this->container['path'] .DS .'Database' .DS .'Migrations';
    }
1010922
public function getBasePath()
    {
        return (!empty($this->config['General']['base_path'])
                && !empty($this->config['General']['use_base_path']))
            ? $this->config['General']['base_path'] : null;
    }
933865
private function getMigrationPaths($edition = null)
    {
        $allMigrationPaths = $this->facts->getMigrationPaths();

        if (is_null($edition)) {
            return $allMigrationPaths;
        }

        $migrationPaths = [];
        foreach ($allMigrationPaths as $migrationEdition => $migrationPath) {
            if (strtolower($migrationEdition) === strtolower($edition)) {
                $migrationPaths[$migrationEdition] = $migrationPath;
                break;
            }
        }

        return $migrationPaths;
    }
695488
public function getPath()
    {
        $config = $this->module->get('migration');

        $migrationPath = GenerateConfigReader::read('migration');
        $path = (is_array($config) && array_key_exists('path', $config)) ? $config['path'] : $migrationPath->getPath();

        return $this->module->getExtraPath($path);
    }
262461
public static function getInstallationPath()
    {
        self::setPackageDir();

        $path = realpath( self::$packageDir );
        if ( substr( $path, -1 ) !== DIRECTORY_SEPARATOR )
        {
            $path .= DIRECTORY_SEPARATOR;
        }
        return $path;
    }