Skip to content

Commit

Permalink
Update incorect binding scope to Singleton in SqlQueryProviderModule
Browse files Browse the repository at this point in the history
Changed the binding scope of RowInterface, RowListInterface, and InvokeInterface classes in SqlQueryProviderModule to "Singleton". This update ensures that these classes will have only one instance throughout the application, enhancing performance and reducing resource usage.
  • Loading branch information
koriym committed Jun 7, 2024
1 parent 120ae19 commit 8671194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SqlQueryProviderModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ protected function configure()
{
$this->bind(SqlFinder::class)->in(Scope::SINGLETON);
$this->bind(ParamReaderInterface::class)->to(ParamReader::class)->in(Scope::SINGLETON);
$this->bind(RowInterface::class)->toProvider(RowInterfaceProvider::class)->in(Scope::class);
$this->bind(RowListInterface::class)->toProvider(RowListInterfaceProvider::class)->in(Scope::class);
$this->bind(InvokeInterface::class)->toProvider(RowListInterfaceProvider::class)->in(Scope::class);
$this->bind(RowInterface::class)->toProvider(RowInterfaceProvider::class)->in(Scope::SINGLETON);
$this->bind(RowListInterface::class)->toProvider(RowListInterfaceProvider::class)->in(Scope::SINGLETON);
$this->bind(InvokeInterface::class)->toProvider(RowListInterfaceProvider::class)->in(Scope::SINGLETON);
}
}

0 comments on commit 8671194

Please sign in to comment.