Skip to content

Commit

Permalink
Merge pull request #162 from ddevsr/patch-2
Browse files Browse the repository at this point in the history
refactor: use `service()` for prepare `v4.5`
  • Loading branch information
kenjis committed Apr 5, 2024
2 parents 7ca395d + ec8760e commit 543d729
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use CodeIgniter\Events\Events;
use CodeIgniter\I18n\Time;
use CodeIgniter\Tasks\Exceptions\TasksException;
use Config\Services;
use InvalidArgumentException;
use ReflectionException;
use ReflectionFunction;
Expand Down Expand Up @@ -260,7 +259,7 @@ protected function runEvent(): bool
*/
protected function runUrl()
{
$response = Services::curlrequest()->request('GET', $this->getAction());
$response = service('curlrequest')->request('GET', $this->getAction());

return $response->getBody();
}
Expand Down

0 comments on commit 543d729

Please sign in to comment.