Skip to content

Instantly share code, notes, and snippets.

@nickygerritsen
Last active January 26, 2022 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickygerritsen/59dae35a7a29c07263e96c8ab37f9abe to your computer and use it in GitHub Desktop.
Save nickygerritsen/59dae35a7a29c07263e96c8ab37f9abe to your computer and use it in GitHub Desktop.
econtract-compare.patch
--- a/src/Econtract/Compare/CompareServiceProvider.php 2019-11-07 11:58:03.000000000 +0100
+++ b/src/Econtract/Compare/CompareServiceProvider.php 2022-01-26 16:14:11.000000000 +0100
@@ -31,7 +31,8 @@
protected function registerProductServiceProvider()
{
- $this->app['Compare.product'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.product',
function($app)
{
return new ProductServiceProvider();
@@ -41,7 +42,8 @@
protected function registerSupplierServiceProvider()
{
- $this->app['Compare.supplier'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.supplier',
function($app)
{
return new SupplierServiceProvider();
@@ -51,7 +53,8 @@
protected function registerAffiliateServiceProvider()
{
- $this->app['Compare.affiliate'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.affiliate',
function($app)
{
return new AffiliateServiceProvider();
@@ -61,7 +64,8 @@
protected function registerComparisonServiceProvider()
{
- $this->app['Compare.comparison'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.comparison',
function($app)
{
return new ComparisonServiceProvider();
@@ -71,7 +75,8 @@
protected function registerOptionServiceProvider()
{
- $this->app['Compare.option'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.option',
function($app)
{
return new OptionServiceProvider();
@@ -81,7 +86,8 @@
protected function registerPromotionServiceProvider()
{
- $this->app['Compare.promotion'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare.promotion',
function($app)
{
return new PromotionServiceProvider();
@@ -91,7 +97,8 @@
protected function registerApiService()
{
- $this->app['Compare'] = $this->app->share(
+ $this->app->singleton(
+ 'Compare',
function($app)
{
return new CompareService(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment