// Own namespace
namespace Org\Mxchange\City\Manager\Entities\Lots;
+// Import application-specific stuff
+use Org\Mxchange\City\Manager\BaseManager;
+
// Import framework stuff
-use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
-use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Factory\Database\Frontend\DatabaseFrontendFactory;
use Org\Mxchange\CoreFramework\Registry\Registerable;
/**
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class CityLotsManager extends BaseFrameworkSystem implements ManageableCityLots, Registerable {
+class CityLotsManager extends BaseManager implements ManageableCityLots, Registerable {
/**
* Protected constructor
*
// Get new instance
$managerInstance = new CityLotsManager();
- // Get database wrapper
- $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('city_lots_db_wrapper_class');
+ // Get database frontend
+ $frontendInstance = DatabaseFrontendFactory::createFrontendByConfiguredName('city_lots_db_frontend_class');
// And set it here
- $managerInstance->setWrapperInstance($wrapperInstance);
+ $managerInstance->setFrontendInstance($frontendInstance);
// Return the prepared instance
return $managerInstance;