Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Aug 28, 2023
1 parent 138f00b commit 90d0cd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Admin/Routes/Web/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use phpOMS\Router\RouteVerb;

return [
'^.*/profile.*$' => [
'^.*/profile\?.*$' => [
[
'dest' => '\Modules\Profile\Controller\BackendController:setupProfileStyles',
'verb' => RouteVerb::GET,
Expand Down
4 changes: 1 addition & 3 deletions tests/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ public static function addPath(string $path) : 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
*/
public static function defaultAutoloader(string $class) : void
{
$class = \ltrim($class, '\\');
$class = \str_replace(['_', '\\'], '/', $class);
$class = \strtr($class, '_\\', '//');

foreach (self::$paths as $path) {
$file = $path . $class . '.php';
Expand Down

0 comments on commit 90d0cd4

Please sign in to comment.