bnomei / kirby3-janitor

Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code, CLI or a cronjob
https://forum.getkirby.com/t/kirby3-janitor-plugin/23573
MIT License
88 stars 8 forks source link

The Toolkit\Query class has been deprecated #95

Closed vauvarin closed 1 year ago

vauvarin commented 1 year ago

With the release of Kirby 3.9.0, the Toolkit\Query class has been deprecated and should be replaced by Query\Query.

vauvarin commented 1 year ago

This is what deprecated:

Old Kirby\Toolkit\Query has been deprecated and will be removed in Kirby 3.10.0. Use Kirby\Query\Query instead, e.g.Query::factory($query)->resolve($data).

new Query($query, $data): Passing $data to constructor will be deprecated. Use (new Query($query))->resolve($data) instead.

Query::result() will be deprecated. Use $query->resolve($data) instead.

You can check the PR here: https://github.com/getkirby/kirby/pull/4626

bnomei commented 1 year ago

thanks @vauvarin

that should be fine in v3 of plugin by now. i wont patch v2.

https://github.com/bnomei/kirby3-janitor/blob/eaa6e5510e5f08c3902724cc98751ab0a34a727c/commands/render.php#L14)