The arguments object is now correctly inheriting from ArrayObject
Resolves: #10562
[+BUGFIX] Extbase (MVC): Make database connection work again
Resolves: #10585
* @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
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'];
}
/**