Faker icon indicating copy to clipboard operation
Faker copied to clipboard

added protected method Generator::findFormatter

Open gsouf opened this issue 4 years ago • 0 comments

Hi,

This PR adds a protected method Generator::findFormatter that can get a formatter without use of cache.

The reason I propose it is that we need to define custom way to find a formatter by overiding Generator::getFormater but we cannot do it efficiently as the method makes use of cache internally. We would like to be able to keep the native cache feature of the method and just overide the way the formatter callable is found.

In other words with this change then we will be able to overide the method findFormatter without messing with the cache implementation

Thanks

gsouf avatar Jun 18 '20 21:06 gsouf