File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,23 @@ public function __construct($path, $file = '.env')
39
39
}
40
40
41
41
/**
42
- * Load `.env` file in given directory.
42
+ * Load environment file in given directory.
43
43
*
44
44
* @return array
45
45
*/
46
46
public function load ()
47
47
{
48
- return $ this ->getLoaderData ();
48
+ return $ this ->loadData ();
49
49
}
50
50
51
51
/**
52
- * Load `.env` file in given directory.
52
+ * Load environment file in given directory.
53
53
*
54
54
* @return array
55
55
*/
56
56
public function overload ()
57
57
{
58
- return $ this ->getLoaderData (true );
58
+ return $ this ->loadData (true );
59
59
}
60
60
61
61
/**
@@ -76,19 +76,23 @@ protected function getFilePath($path, $file)
76
76
77
77
return $ filePath ;
78
78
}
79
-
79
+
80
80
/**
81
- * Load data from '.env'
81
+ * Actually load the data.
82
+ *
83
+ * @param bool $overload
84
+ *
82
85
* @return array
83
86
*/
84
- private function getLoaderData ($ overload = false )
87
+ protected function loadData ($ overload = false )
85
88
{
86
89
$ this ->loader = new Loader ($ this ->filePath , !$ overload );
90
+
87
91
return $ this ->loader ->load ();
88
92
}
89
93
90
94
/**
91
- * Required ensures that the specified variables exist, and returns a new Validator object.
95
+ * Required ensures that the specified variables exist, and returns a new validator object.
92
96
*
93
97
* @param string|string[] $variable
94
98
*
You can’t perform that action at this time.
0 commit comments