Skip to content

Commit 05f80c8

Browse files
committed
AC-9028: Admin (backend frontname) url generation enhancement
1 parent 675dd95 commit 05f80c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Setup/BackendFrontnameGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BackendFrontnameGenerator
1919
/**
2020
* Length of the backend frontname random part
2121
*/
22-
const ADMIN_AREA_PATH_RANDOM_PART_LENGTH = 6;
22+
const ADMIN_AREA_PATH_RANDOM_PART_LENGTH = 7;
2323

2424
/**
2525
* Generate Backend name
@@ -29,6 +29,6 @@ class BackendFrontnameGenerator
2929
public static function generate()
3030
{
3131
return self::ADMIN_AREA_PATH_PREFIX
32-
. substr(base_convert(random_int(0, PHP_INT_MAX), 10, 36), 0, self::ADMIN_AREA_PATH_RANDOM_PART_LENGTH);
32+
. strrev(substr(base_convert(random_int(0, PHP_INT_MAX), 10, 36), 0, self::ADMIN_AREA_PATH_RANDOM_PART_LENGTH));
3333
}
3434
}

0 commit comments

Comments
 (0)