Skip to content

Commit 784a69f

Browse files
heelc29laoneorichard67
authored
[4.4] replace deprecated access of input property (#40313)
Co-authored-by: Allon Moritz <[email protected]> Co-authored-by: Richard Fath <[email protected]>
1 parent cd42246 commit 784a69f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libraries/src/Dispatcher/ComponentDispatcherFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ public function createDispatcher(CMSApplicationInterface $application, Input $in
8080
}
8181
}
8282

83-
return new $className($application, $input ?: $application->input, $this->mvcFactory);
83+
return new $className($application, $input ?: $application->getInput(), $this->mvcFactory);
8484
}
8585
}

libraries/src/Dispatcher/ModuleDispatcherFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public function createDispatcher(\stdClass $module, CMSApplicationInterface $app
6969
$className = ModuleDispatcher::class;
7070
}
7171

72-
return new $className($module, $application, $input ?: $application->input);
72+
return new $className($module, $application, $input ?: $application->getInput());
7373
}
7474
}

libraries/src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ protected static function createDocument()
740740

741741
$lang = self::getLanguage();
742742

743-
$input = self::getApplication()->input;
743+
$input = self::getApplication()->getInput();
744744
$type = $input->get('format', 'html', 'cmd');
745745

746746
$version = new Version();

0 commit comments

Comments
 (0)