Skip to content

Commit

Permalink
Do not check config file existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Vítězslav Dvořák committed Oct 30, 2023
1 parent 7cc9fe1 commit 150d96e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Ease/Shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,6 @@ public static function &user(Person $user = null, string $candidat = 'User', str
*/
public function loadConfig($configFile, $defineConstants = false)
{
if (!file_exists($configFile)) {
throw new Exception(
'Config file ' . (realpath($configFile) ? realpath($configFile) : $configFile) . ' does not exist'
);
}

switch (strtolower(pathinfo($configFile, constant('PATHINFO_EXTENSION')))) {
case 'json':
$configuration = json_decode(file_get_contents($configFile), true);
Expand Down

0 comments on commit 150d96e

Please sign in to comment.