File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ]);
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments