mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-14 08:48:41 +00:00
update
This commit is contained in:
parent
de002fff45
commit
68bd33d4ae
|
|
@ -71,14 +71,12 @@ final class Autoloader
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation.
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function defaultAutoloader(string $class) : void
|
public static function defaultAutoloader(string $class) : void
|
||||||
{
|
{
|
||||||
$class = \ltrim($class, '\\');
|
$class = \ltrim($class, '\\');
|
||||||
$class = \str_replace(['_', '\\'], '/', $class);
|
$class = \strtr($class, '_\\', '//');
|
||||||
|
|
||||||
foreach (self::$paths as $path) {
|
foreach (self::$paths as $path) {
|
||||||
$file = $path . $class . '.php';
|
$file = $path . $class . '.php';
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ final class Importer extends ImporterAbstract
|
||||||
'database' => $request->getDataString('database') ?? '',
|
'database' => $request->getDataString('database') ?? '',
|
||||||
'login' => $request->getDataString('login') ?? '',
|
'login' => $request->getDataString('login') ?? '',
|
||||||
'password' => $request->getDataString('password') ?? '',
|
'password' => $request->getDataString('password') ?? '',
|
||||||
'datetimeformat' => (string) ($request->getData('datetimeformat') ?? 'Y-m-d H:i:s'),
|
'datetimeformat' => $request->getDataString('datetimeformat') ?? 'Y-m-d H:i:s',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->remote->connect();
|
$this->remote->connect();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user