diff --git a/source/Core/Config.php b/source/Core/Config.php index 68435dc1e5..6f54fbc699 100644 --- a/source/Core/Config.php +++ b/source/Core/Config.php @@ -90,6 +90,8 @@ class Config extends \OxidEsales\Eshop\Core\Base * Shops install directory * * @var string + * + * @deprecated will be removed in next major, use environment variables instead */ protected $sShopDir = null; @@ -97,6 +99,8 @@ class Config extends \OxidEsales\Eshop\Core\Base * Shops compile directory * * @var string + * + * @deprecated will be removed in next major, use environment variables instead */ protected $sCompileDir = null; @@ -867,6 +871,8 @@ public function getShopUrl($lang = null, $admin = null) /** * Returns config sSSLShopURL or sMallSSLShopURL if secondary shop * + * @deprecated since v8.0 use getShopUrl instead + * * @param int $lang language (default is null) * * @return string diff --git a/source/Core/Exception/ExceptionHandler.php b/source/Core/Exception/ExceptionHandler.php index 9455cc7391..2bb562d723 100644 --- a/source/Core/Exception/ExceptionHandler.php +++ b/source/Core/Exception/ExceptionHandler.php @@ -68,11 +68,7 @@ public function handleUncaughtException(\Throwable $exception) } /** - * Report the exception and in case that iDebug is not set, redirect to maintenance page. - * Special methods are used here as the normal exception handling routines always need a database connection and - * this would create a loop. - * - * @param \OxidEsales\Eshop\Core\Exception\DatabaseException $exception Exception to handle + * @deprecated method will be removed in next major, use handleUncaughtException directly */ public function handleDatabaseException(\OxidEsales\Eshop\Core\Exception\DatabaseException $exception) { @@ -81,7 +77,7 @@ public function handleDatabaseException(\OxidEsales\Eshop\Core\Exception\Databas /** - * Exit the application with error status 1 + * @deprecated method will be removed in next major, use PHP function directly */ protected function exitApplication() { diff --git a/source/Core/ShopControl.php b/source/Core/ShopControl.php index a1dfcd373a..9fb0da084b 100644 --- a/source/Core/ShopControl.php +++ b/source/Core/ShopControl.php @@ -666,6 +666,8 @@ protected function handleCookieException($exception) } /** + * @deprecated will be removed in next major, standard execution handling will be used. + * * Handle database exceptions * There is still space for improving this as a similar exception handling for database exceptions may be done in * \OxidEsales\EshopCommunity\Core\Config::init() and the current method may not be executed @@ -732,6 +734,8 @@ protected function logException(\Exception $exception) } /** + * @deprecated will be removed in next major, standard execution handling will be used. + * * Notify the shop owner about database connection problems. * * This method forms part of the exception handling process. Any further exceptions must be caught. @@ -757,6 +761,8 @@ protected function reportDatabaseConnectionException(DatabaseConnectionException } /** + * @deprecated will be removed in next major, standard execution handling will be used. + * * Return true, if a message was already sent within a given threshold. * * This method forms part of the exception handling process. Any further exceptions must be caught. @@ -781,6 +787,8 @@ protected function messageWasSentWithinThreshold() } /** + * @deprecated will be removed in next major, standard execution handling will be used. + * * Send an offline warning to the shop owner. * Currently an email is sent to the email address configured as 'sAdminEmail' in the eShop config file. * diff --git a/source/Core/ViewConfig.php b/source/Core/ViewConfig.php index 5490e5da43..3dec49c681 100644 --- a/source/Core/ViewConfig.php +++ b/source/Core/ViewConfig.php @@ -1097,6 +1097,8 @@ public function getBasketTimeLeft() * true if blocks javascript code be enabled in templates * * @return bool + * + * @deprecated function will be removed in next major version */ public function isTplBlocksDebugMode() { diff --git a/source/Internal/Framework/Database/ConnectionFactory.php b/source/Internal/Framework/Database/ConnectionFactory.php new file mode 100644 index 0000000000..c7cae2389d --- /dev/null +++ b/source/Internal/Framework/Database/ConnectionFactory.php @@ -0,0 +1,21 @@ +getPublicConnection(); + } +} diff --git a/source/Internal/Framework/Database/ConnectionFactoryInterface.php b/source/Internal/Framework/Database/ConnectionFactoryInterface.php new file mode 100644 index 0000000000..e439be9d3b --- /dev/null +++ b/source/Internal/Framework/Database/ConnectionFactoryInterface.php @@ -0,0 +1,15 @@ +OXID Online Shop - Alles rund um das Thema Wassersport, Sportbekleidung und Mode ', 'standard footer', '