mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-82824 core: Correct thirdparty entry for slim
This commit is contained in:
parent
670121daa3
commit
a8c6201dbf
@ -145,11 +145,6 @@ class router {
|
||||
protected function create_app(
|
||||
string $basepath = '',
|
||||
): void {
|
||||
global $CFG;
|
||||
|
||||
// PHP Does not support autoloading functions.
|
||||
require_once("{$CFG->libdir}/nikic/fast-route/src/functions.php");
|
||||
|
||||
// Create an App using the DI Bridge.
|
||||
$this->app = router\bridge::create();
|
||||
|
||||
|
@ -175,13 +175,9 @@ abstract class route_testcase extends \advanced_testcase {
|
||||
* @return App
|
||||
*/
|
||||
protected function get_simple_app(): App {
|
||||
global $CFG;
|
||||
require_once("{$CFG->libdir}/nikic/fast-route/src/functions.php");
|
||||
$app = bridge::create(
|
||||
return bridge::create(
|
||||
container: \core\di::get_container(),
|
||||
);
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -794,7 +794,7 @@ All rights reserved.</copyright>
|
||||
<repository>https://github.com/php-di/invoker</repository>
|
||||
</library>
|
||||
<library>
|
||||
<location>slim</location>
|
||||
<location>slim/slim</location>
|
||||
<name>Slim Framework</name>
|
||||
<version>4.13.0</version>
|
||||
<license>MIT</license>
|
||||
|
Loading…
x
Reference in New Issue
Block a user