Resolves #60725: Reduce used memory of the Domain Models (Thanks to Tim Lochm├╝ller)
[TYPO3CMS/Extensions/static_info_tables.git] / Classes / Domain / Model / AbstractEntity.php
index 4d56ca3..9d3d4f1 100644 (file)
@@ -1,10 +1,9 @@
 <?php
 namespace SJBR\StaticInfoTables\Domain\Model;
-use \SJBR\StaticInfoTables\Utility\LocalizationUtility;
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 2013 Stanislas Rolland <typo3(arobas)sjbr.ca>
+*  (c) 2013-2014 Stanislas Rolland <typo3(arobas)sjbr.ca>
 *
 *  All rights reserved
 *
@@ -26,18 +25,11 @@ use \SJBR\StaticInfoTables\Utility\LocalizationUtility;
 ***************************************************************/
 /**
  * Abstract model for static entities
- *
- * @copyright Copyright belongs to the respective authors
- * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
  */
-class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
 
-       /**
-        * Extbase configuration
-        *
-        * @var array
-        */
-       protected $extbaseConfiguration;
+use \SJBR\StaticInfoTables\Utility\LocalizationUtility;
+
+class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
 
        /**
         * Name of the table from persistence mapping of this model
@@ -63,8 +55,6 @@ class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
         */
        public function initializeObject() {
                $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
-               $configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');
-               $this->extbaseConfiguration = $configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
        }
 
        /**
@@ -103,5 +93,4 @@ class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
                }
                return $this->nameLocalized;
        }
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file