MDL-82824 core: Correct thirdparty entry for slim

This commit is contained in:
Andrew Nicols 2024-08-20 00:28:54 +08:00
parent 670121daa3
commit a8c6201dbf
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
3 changed files with 2 additions and 11 deletions

View File

@ -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();

View File

@ -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;
}
/**

View File

@ -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>