Skip to content

Commit ec8760e

Browse files
authored
refactor: use service() for prepare v4.5
1 parent 7ca395d commit ec8760e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Task.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use CodeIgniter\Events\Events;
1717
use CodeIgniter\I18n\Time;
1818
use CodeIgniter\Tasks\Exceptions\TasksException;
19-
use Config\Services;
2019
use InvalidArgumentException;
2120
use ReflectionException;
2221
use ReflectionFunction;
@@ -260,7 +259,7 @@ protected function runEvent(): bool
260259
*/
261260
protected function runUrl()
262261
{
263-
$response = Services::curlrequest()->request('GET', $this->getAction());
262+
$response = service('curlrequest')->request('GET', $this->getAction());
264263

265264
return $response->getBody();
266265
}

0 commit comments

Comments
 (0)