tchoulom / ViewCounterBundle

This bundle is used to count the number of views of a page.
MIT License
15 stars 11 forks source link

Trouble to make FileStatFinder working with MongoDB #22

Closed apsylone closed 2 hours ago

apsylone commented 3 hours ago

Hi,

I'm trying to make my FileStatFinder working with MongoDB. Everything is working fine (documents are in DB, views are incremented...), but when using the FileStatFinder, I get an empty array. Do I am using it in the wrong way ? I suspect that the FileStatFinder class is only for file stats, but what is there a MongoDB implementation so ? :-)

Thanks for your help @tchoulom and for your bundle,

tchoulom commented 2 hours ago

Hi,

The "FileStatsFinder" service, as its name suggests, is intended to perform statistical searches in a statistics file. Currently, it is not yet configured to perform searches in a MongoDB database, but you have the possibility to implement it according to the needs of your project.