Hi,
I created a custom filter inside my bootstrap:
use Phalcon\Filter;
$di->setShared('filter', function() {
$filter = new Filter();
$filter->add('commatodot', function ($value) {
return preg_replace('/\./', ',', $value);
});
return $filter;
});
I'm trying to access it through the static function getDefault():
$test = Di::getDefault()->getService('filter');
But hot can I use my specific filter?