If the users could override the classes in the package then they could temporarily fix urgent bugs without having to fork the package.
Background
I try to override one of the classes so I can modify one function.
But that is not possible because the class objects are instantiated with new in the AlternativeCacheStoresServiceProvider.
Example
$store = new AlternativeRedisCacheStoreWithLocks(
$app['redis'],
$provider->getPrefix($cacheConfig),
$provider->getConnectionName($cacheConfig)
);
Laravel v10.48.18 (PHP v8.1.2-1ubuntu2.18) Locking swayok/alternative-laravel-cache (6.1.17)
Enhancement request
If the users could override the classes in the package then they could temporarily fix urgent bugs without having to fork the package.
Background
I try to override one of the classes so I can modify one function. But that is not possible because the class objects are instantiated with
new
in the AlternativeCacheStoresServiceProvider.Example
If that would be changed to
Override class
then the class can be overridden in my own package service provider like this.