From fa03dfb3c432e7c273eb3083ffee1da73cf81e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Fri, 2 Feb 2024 13:46:25 +0100 Subject: [PATCH] adding corrections for vendor packages --- CHANGELOG.md | 7 +++++++ src/Helpers/UtilsDataHelper.php | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a81609..81b27ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [1.1.4] + +### Changed + +- Location of the data manifest path. + ## [1.1.3] ### Added @@ -28,6 +34,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a - Initial production release. +[1.1.4]: https://github.com/infinum/eightshift-forms-utils/compare/1.1.3...1.1.4 [1.1.3]: https://github.com/infinum/eightshift-forms-utils/compare/1.1.2...1.1.3 [1.1.2]: https://github.com/infinum/eightshift-forms-utils/compare/1.1.1...1.1.2 [1.1.1]: https://github.com/infinum/eightshift-forms-utils/compare/1.1.0...1.1.1 diff --git a/src/Helpers/UtilsDataHelper.php b/src/Helpers/UtilsDataHelper.php index a94c28c..72632e6 100644 --- a/src/Helpers/UtilsDataHelper.php +++ b/src/Helpers/UtilsDataHelper.php @@ -10,6 +10,8 @@ namespace EightshiftFormsUtils\Helpers; +use EightshiftLibs\Helpers\Components; + /** * Class UtilsDataHelper */ @@ -63,6 +65,7 @@ public static function getDataManifestRaw(string $type, string $file = 'manifest */ public static function getDataManifestPath(string $type, string $file = 'manifest.json'): string { - return \dirname(__FILE__, 3) . "/data/{$type}/{$file}"; + $sep = \DIRECTORY_SEPARATOR; + return Components::getProjectPaths('srcPath') . "vendor/infinum/eightshift-forms-utils/{$sep}data{$sep}{$type}{$sep}{$file}"; } }