You'll need to create your own service provider. It should look something like this.
namespace My\Project\Providers;
use Conner\Tagging\Providers\TaggingServiceProvider as ServiceProvider;
use Conner\Tagging\Contracts\TaggingUtility;
class TaggingServiceProvider extends ServiceProvider {
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton(TaggingUtility::class, function () {
return new MyNewUtilClass;
});
}
}
Where MyNewUtilClass
is a class you have written. Your new Util class obviously needs to implement the Conner\Tagging\Contracts\TaggingUtility
interface.