Skip to content

Commit 3a232d3

Browse files
committed
fix: remove class loader loading
1 parent a51d91a commit 3a232d3

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/Controller/StateMachineController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public function load(Request $request): JsonResponse
4444
$exporter = new Plantuml();
4545
$generatedPlantuml = $exporter->export($stateMachine, $title);
4646

47-
FroshTools::classLoader();
48-
4947
$response = new JsonResponse();
5048
$encode = Planuml::encodep($generatedPlantuml);
5149
$response->setData(['svg' => '//www.plantuml.com/plantuml/svg/' . $encode]);

src/FroshTools.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,4 @@ public function createContainerExtension(): FroshToolsExtension
2626
{
2727
return new FroshToolsExtension();
2828
}
29-
30-
public static function classLoader(): void
31-
{
32-
$file = __DIR__ . '/../vendor/autoload.php';
33-
if (!is_file($file)) {
34-
return;
35-
}
36-
37-
/** @noinspection UsingInclusionOnceReturnValueInspection */
38-
$classLoader = require_once $file;
39-
40-
if (!$classLoader instanceof ClassLoader) {
41-
return;
42-
}
43-
44-
$classLoader->unregister();
45-
$classLoader->register(false);
46-
}
4729
}

0 commit comments

Comments
 (0)