@@ 59-61 (lines=3) @@ | ||
56 | if (is_file($customRoutesFile)) { |
|
57 | try{ |
|
58 | $customRoutes = Yaml::parse(file_get_contents($customRoutesFile)); |
|
59 | if (!empty($customRoutes['literal'])) { |
|
60 | $routes['literal'] = array_merge($routes['literal'], $customRoutes['literal']); |
|
61 | } |
|
62 | if (!empty($customRoutes['regex'])) { |
|
63 | $routes['regex'] = array_merge($routes['regex'], $customRoutes['regex']); |
|
64 | } |
|
@@ 62-64 (lines=3) @@ | ||
59 | if (!empty($customRoutes['literal'])) { |
|
60 | $routes['literal'] = array_merge($routes['literal'], $customRoutes['literal']); |
|
61 | } |
|
62 | if (!empty($customRoutes['regex'])) { |
|
63 | $routes['regex'] = array_merge($routes['regex'], $customRoutes['regex']); |
|
64 | } |
|
65 | } catch (\Exception $e) { |
|
66 | // todo: log error |
|
67 | } |