Inject backend identifier via setter, not constructor
* VuFindSearch/Backend/Solr/Backend.php (__construct): Use object hash as default identifier. * VuFindSearch/Backend/Solr/Backend.php (__construct) (setIdentifier): Inject backend identifier via setter, not constructor. * VuFind/Search/BackendManager.php (onResolve): Inject backend identifier. * VuFindSearch/Backend/BackendInterface.php (setIdentifier): Make setIdentifier() part of the backend interface definition. * VuFind/Search/Factory/SolrReservesBackendFactory.php (__construct): Dto. * VuFind/Search/Factory/SolrDefaultBackendFactory.php (__construct): Dto. * VuFind/Search/Factory/AbstractSolrBackendFactory.php ($serviceName): Removed. Name injected by BackendManager. * VuFind/Search/BackendManager.php (onResolve): Inject backend identifier.
Showing
- module/VuFind/src/VuFind/Search/BackendManager.php 1 addition, 0 deletionsmodule/VuFind/src/VuFind/Search/BackendManager.php
- module/VuFind/src/VuFind/Search/Factory/AbstractSolrBackendFactory.php 3 additions, 11 deletions.../src/VuFind/Search/Factory/AbstractSolrBackendFactory.php
- module/VuFind/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php 2 additions, 4 deletions...d/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php
- module/VuFind/src/VuFind/Search/Factory/SolrReservesBackendFactory.php 0 additions, 1 deletion.../src/VuFind/Search/Factory/SolrReservesBackendFactory.php
- module/VuFindSearch/src/VuFindSearch/Backend/BackendInterface.php 9 additions, 0 deletions...uFindSearch/src/VuFindSearch/Backend/BackendInterface.php
- module/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php 14 additions, 3 deletions...le/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php
Please register or sign in to comment