mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 06:57:25 +02:00
cs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
if (preg_match('#^DesignPatterns\\\\(.+)$#', $class, $ret)) {
|
||||
$relPath = str_replace('\\', DIRECTORY_SEPARATOR, $ret[1]);
|
||||
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . $relPath . '.php';
|
||||
}
|
||||
});
|
||||
if (preg_match('#^DesignPatterns\\\\(.+)$#', $class, $ret)) {
|
||||
$relPath = str_replace('\\', DIRECTORY_SEPARATOR, $ret[1]);
|
||||
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . $relPath . '.php';
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user