PluginProbe
Depicter — Popup & Slider Builder / 1.3.2
Depicter — Popup & Slider Builder v1.3.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / modules / wpemerge-app-core / src / Config / Config.php

Config.php in Depicter — Popup & Slider Builder 1.3.2, at modules/wpemerge-app-core/src/Config/Config.php

43 lines 756 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package WPEmergeAppCore
4 * @author Atanas Angelov <hi@atanas.dev>
5 * @copyright 2017-2020 Atanas Angelov
6 * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7 * @link https://wpemerge.com/
8 */
9
10 namespace WPEmergeAppCore\Config;
11
12 use WPEmerge\Helpers\MixedType;
13 use WPEmergeAppCore\Concerns\ReadsJsonTrait;
14
15 class Config {
16 use ReadsJsonTrait {
17 load as traitLoad;
18 }
19
20 /**
21 * App root path.
22 *
23 * @var string
24 */
25 protected $path = '';
26
27 /**
28 * Constructor.
29 *
30 * @param string $path
31 */
32 public function __construct( $path ) {
33 $this->path = $path;
34 }
35
36 /**
37 * {@inheritDoc}
38 */
39 protected function getJsonPath() {
40 return MixedType::normalizePath( $this->path . DIRECTORY_SEPARATOR . 'config.json' );
41 }
42 }
43