This commit is contained in:
Dennis Eichhorn 2023-08-28 22:06:36 +00:00
parent 02a2c14896
commit d900c91050
3 changed files with 5 additions and 4 deletions

View File

@ -59,6 +59,9 @@ final class Installer extends InstallerAbstract
*
* @return array
*
* @throws PathException
* @throws \Exception
*
* @since 1.0.0
*/
public static function installExternal(ApplicationAbstract $app, array $data) : array

View File

@ -52,7 +52,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Workflow/Theme/Backend/workflow-template-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005501001, $request, $response);
$path = \str_replace('+', ' ', (string) ($request->getData('path') ?? '/'));
$path = \strtr($request->getDataString('path') ?? '/', '+', ' ');
$templates = WorkflowTemplateMapper::getAll()
->with('createdBy')
->with('tags')

View File

@ -71,14 +71,12 @@ final class Autoloader
*
* @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';