Skip to content

Commit bb4aa24

Browse files
Matthias Opitzkeevan
Matthias Opitz
authored andcommitted
no longer using externallib.php
1 parent d34fd7c commit bb4aa24

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

classes/local/step/flow_web_service.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@
1818

1919
defined('MOODLE_INTERNAL') || die();
2020

21-
require_once($CFG->libdir . '/externallib.php');
22-
2321
use core_user;
2422
use core\session\manager;
25-
use external_api;
23+
use core_external\external_api;
2624
use moodle_exception;
27-
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
2825
use Symfony\Component\Yaml\Yaml;
2926
use Throwable;
3027
use tool_dataflows\parser;

tests/tool_dataflows_web_service_flow_test.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
defined('MOODLE_INTERNAL') || die();
2020

2121
global $CFG;
22-
require_once($CFG->libdir.'/externallib.php');
2322
require_once(__DIR__ . '/application_trait.php');
2423

25-
26-
2724
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
2825
use Symfony\Component\Yaml\Yaml;
2926
use tool_dataflows\dataflow;
@@ -38,6 +35,7 @@
3835
* @author Ghaly Marc-Alexandre <[email protected]>
3936
* @copyright 2022, Catalyst IT
4037
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38+
* @runInSeparateProcess
4139
*/
4240
class tool_dataflows_web_service_flow_test extends \advanced_testcase {
4341
use application_trait;

0 commit comments

Comments
 (0)