[+BUGFIX] Extbase (MVC): Fix arguments object
authorSebastian Kurfürst <sebastian@typo3.org>
Tue, 2 Nov 2010 09:41:53 +0000 (09:41 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Tue, 2 Nov 2010 09:41:53 +0000 (09:41 +0000)
The arguments object is now correctly inheriting from ArrayObject

Resolves: #10562

[+BUGFIX] Extbase (MVC): Make database connection work again

Resolves: #10585

typo3/sysext/extbase/Classes/MVC/Controller/Arguments.php
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index 9d447f3..b9e0f54 100644 (file)
@@ -33,7 +33,7 @@
  * @version $ID:$
  * @scope prototype
  */
-class Tx_Extbase_MVC_Controller_Arguments { // extends ArrayObject {
+class Tx_Extbase_MVC_Controller_Arguments extends ArrayObject {
 
        /**
         * @var Tx_Extbase_Persistence_ManagerInterface
index 4ae4001..b0dd05b 100644 (file)
@@ -71,10 +71,10 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
        protected $tableInformationCache = array();
 
        /**
-        * @param t3lib_db $databaseHandle The database handle
+        * Constructor. takes the database handle from $GLOBALS['TYPO3_DB']
         */
-       public function injectDatabaseHandle(t3lib_db $databaseHandle) {
-               $this->databaseHandle = $databaseHandle;
+       public function __construct() {
+               $this->databaseHandle = $GLOBALS['TYPO3_DB'];
        }
 
        /**