We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Injecting custom Phalcon\Mvc\Model\Criteria

I would like to create a custom Phalcon\Mvc\Model\Criteria that will be used when calling Model::query(); How can I inject it, or better define it in the DI so it will be used as default when creating a new Phalcon\Mvc\Model\Criteria object?