acsiomatic / device-detector-bundle

Symfony Bundle for https://github.com/matomo-org/device-detector
https://packagist.org/packages/acsiomatic/device-detector-bundle
MIT License
10 stars 1 forks source link

Add DeviceDetect proxy to autoload. #36

Open koekaverna opened 9 months ago

koekaverna commented 9 months ago

Add proxy class to autoloading to fix problem when already exists file with the same hash overrwited on every request

renanbr commented 9 months ago

Thanks for this PR @koekaverna

The DoctrineMongoDBBundle registers (and unregisters) its autoloader in the Kernel.

This seems a better approach.

We could make createConfiguration() public and play with this in the Kernel if the service is available, or skip this completely if the service isn't.