* deleted some unnecessary class files
authorJochen Rau <j.rau@web.de>
Tue, 17 Feb 2009 11:12:21 +0000 (11:12 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 17 Feb 2009 11:12:21 +0000 (11:12 +0000)
typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_Controller_RESTController.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_BackendInterface.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchema.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchemataBuilder.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_Manager.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ManagerInterface.php [deleted file]

diff --git a/typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_Controller_RESTController.php b/typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_Controller_RESTController.php
deleted file mode 100644 (file)
index 4b2c819..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * An action controller for RESTful web services
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-class RESTController extends TX_EXTMVC_Controller_ActionController {
-
-       /**
-        * @var TX_EXTMVC_Web_Request The current request
-        */
-       protected $request;
-
-       /**
-        * @var TX_EXTMVC_Web_Response The response which will be returned by this action controller
-        */
-       protected $response;
-
-       /**
-        * Handles a web request. The result output is returned by altering the given response.
-        *
-        * Note that this REST controller only supports web requests!
-        *
-        * @param TX_EXTMVC_Web_Request $request The request object
-        * @param TX_EXTMVC_Web_Response $response The response, modified by this handler
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function processRequest(TX_EXTMVC_Request $request, TX_EXTMVC_Response $response) {
-               if (!($request instanceof TX_EXTMVC_Web_Request) || !($response instanceof TX_EXTMVC_Web_Response)) {
-                       throw new TX_EXTMVC_Exception_InvalidRequestType('This RESTController only supports web requests.', 1226665171);
-               }
-               parent::processRequest($request, $response);
-       }
-
-       /**
-        * Determines the name of the requested action and calls the action method accordingly.
-        * This implementation analyzes the HTTP request and chooses a matching REST-style action.
-        *
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        * @throws TX_EXTMVC_Exception_NoSuchAction if the action specified in the request object does not exist (and if there's no default action either).
-        */
-       protected function callActionMethod() {
-               if ($this->arguments['id']->isValid() === FALSE) $this->throwStatus(400);
-
-               if ($this->request->getControllerActionName() == 'index') {
-                       $actionName = 'index';
-                       switch ($this->request->getMethod()) {
-                               case F3_FLOW3_Utility_Environment::REQUEST_METHOD_GET :
-                                       $actionName = ($this->arguments['id']->getValue() === NULL) ? 'list' : 'show';
-                               break;
-                               case F3_FLOW3_Utility_Environment::REQUEST_METHOD_POST :
-                                       $actionName = 'create';
-                               break;
-                               case F3_FLOW3_Utility_Environment::REQUEST_METHOD_PUT :
-                                       if ($this->arguments['id']->getValue() === NULL) $this->throwStatus(400, NULL, 'Invalid uid');
-                                       $actionName = 'update';
-                               break;
-                               case F3_FLOW3_Utility_Environment::REQUEST_METHOD_DELETE :
-                                       $actionName = 'delete';
-                               break;
-                       }
-                       $this->request->setControllerActionName($actionName);
-               }
-               parent::callActionMethod();
-       }
-
-       /**
-        * Initializes (registers / defines) arguments of this controller.
-        *
-        * Override this method to add arguments which can later be accessed
-        * by the action methods.
-        *
-        * NOTE: If you override this method, don't forget to call the parent
-        * method as well (or define the uid own your own).
-        *
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function initializeArguments() {
-               $this->arguments->addNewArgument('id', 'UUID');
-       }
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_BackendInterface.php b/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_BackendInterface.php
deleted file mode 100644 (file)
index 6287c85..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-require_once(t3lib_extMgm::extPath('extmvc') . 'Classes/Persistence/TX_EXTMVC_Persistence_ObjectStorage.php');
-
-/**
- * A persistence backend interface
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-interface BackendInterface {
-
-       /**
-        * Initializes the backend
-        *
-        * @param array $classSchemata the class schemata the backend will be handling
-        * @return void
-        */
-       public function initialize(array $classSchemata);
-
-       /**
-        * Sets the aggregate root objects
-        *
-        * @param TX_EXTMVC_Persistence_ObjectStorage $objects
-        * @return void
-        */
-       public function setAggregateRootObjects(TX_EXTMVC_Persistence_ObjectStorage $objects);
-
-       /**
-        * Sets the deleted objects
-        *
-        * @param TX_EXTMVC_Persistence_ObjectStorage $objects
-        * @return void
-        */
-       public function setDeletedObjects(TX_EXTMVC_Persistence_ObjectStorage $objects);
-
-       /**
-        * Commits the current persistence session
-        *
-        * @return void
-        */
-       public function commit();
-
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchema.php b/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchema.php
deleted file mode 100644 (file)
index fa3710e..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * A class schema
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-class ClassSchema {
-
-       const MODELTYPE_ENTITY = 1;
-       const MODELTYPE_VALUEOBJECT = 2;
-
-       const ALLOWED_TYPES_PATTERN = '/^\\\\?(integer|int|float|boolean|string|array|DateTime|F3\\\\[a-zA-Z0-9\\\\]+)/';
-
-       /**
-        * Name of the class this schema is referring to
-        *
-        * @var string
-        */
-       protected $className;
-
-       /**
-        * Model type of the class this schema is referring to
-        *
-        * @var integer
-        */
-       protected $modelType = self::MODELTYPE_ENTITY;
-
-       /**
-        * The name of the property holding the uid of an entity, if any.
-        *
-        * @var string
-        */
-       protected $uidProperty;
-
-       /**
-        * Properties of the class which need to be persisted
-        *
-        * @var array
-        */
-       protected $properties = array();
-
-       /**
-        * Constructs this class schema
-        *
-        * @param string $className Name of the class this schema is referring to
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function __construct($className) {
-               $this->className = $className;
-       }
-
-       /**
-        * Returns the class name this schema is referring to
-        *
-        * @return string The class name
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function getClassName() {
-               return $this->className;
-       }
-
-       /**
-        * Sets (defines) a specific property and its type.
-        *
-        * @param string $name Name of the property
-        * @param string $type Type of the property (ie. one of "integer", "float", "boolean", "string", "array", "DateTime" or some class type (F3_*)
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function setProperty($name, $type) {
-               $matches = array();
-               if (preg_match(self::ALLOWED_TYPES_PATTERN, $type, $matches)) {
-                       $this->properties[$name] = ($matches[1] == 'int') ? 'integer' : $matches[1];
-               } else {
-                       throw new TX_EXTMVC_Persistence_Exception_InvalidPropertyType('Invalid property type encountered: ' . $type, 1220387528);
-               }
-       }
-
-       /**
-        * Returns all properties defined in this schema
-        *
-        * @return array
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function getProperties() {
-               return $this->properties;
-       }
-
-       /**
-        * Sets the model type of the class this schema is referring to.
-        *
-        * @param integer The model type, one of the MODELTYPE_* constants.
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function setModelType($modelType) {
-               if ($modelType < 1 || $modelType > 3) throw new InvalidArgumentException('"' . $modelType . '" is an invalid model type.', 1212519195);
-               $this->modelType = $modelType;
-       }
-
-       /**
-        * Returns the model type of the class this schema is referring to.
-        *
-        * @return integer The model type, one of the MODELTYPE_* constants.
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function getModelType() {
-               return $this->modelType;
-       }
-
-       /**
-        * If the class schema has a certain property
-        *
-        * @param string $propertyName Name of the property
-        * @return boolean
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function hasProperty($propertyName) {
-               return array_key_exists($propertyName, $this->properties);
-       }
-
-       /**
-        * Sets the property marked as uid of an object with @uid
-        *
-        * @param string $name
-        * @return void
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function setUidProperty($name) {
-               $this->uidProperty = $name;
-       }
-
-       /**
-        * Gets the name of the property marked as uid of an object
-        *
-        * @return string
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function getUidProperty() {
-               return $this->uidProperty;
-       }
-
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchemataBuilder.php b/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ClassSchemataBuilder.php
deleted file mode 100644 (file)
index f675626..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * The Class Schemata Builder is used by the Persistence Manager to build class
- * schemata for all classes tagged as ValueObject or Entity.
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-class ClassSchemataBuilder {
-
-       /**
-        * The reflection service
-        *
-        * @var F3_FLOW3_Reflection_Service
-        */
-       protected $reflectionService;
-
-       /**
-        * Constructor
-        *
-        * @param F3_FLOW3_Reflection_Service $reflectionService The reflection service
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function __construct(F3_FLOW3_Reflection_Service $reflectionService) {
-               $this->reflectionService = $reflectionService;
-       }
-
-       /**
-        * Builds class schemata from the specified classes
-        *
-        * @param array $classNames Names of the classes to build schemata from
-        * @return array of TX_EXTMVC_Persistence_ClassSchema
-        * @author Robert Lemke <robert@typo3.org>
-        * @throws TX_EXTMVC_Persistence_Exception_InvalidClass if one of the specified classes does not exist
-        */
-       public function build(array $classNames) {
-               $classSchemata = array();
-               foreach ($classNames as $className) {
-                       if (!class_exists($className)) throw new TX_EXTMVC_Persistence_Exception_InvalidClass('Unknown class "' . $className . '".', 1214495364);
-
-                       $modelType = NULL;
-                       if ($this->reflectionService->isClassTaggedWith($className, 'entity')) {
-                               $modelType = TX_EXTMVC_Persistence_ClassSchema::MODELTYPE_ENTITY;
-                       } elseif ($this->reflectionService->isClassImplementationOf($className, 'TX_EXTMVC_Persistence_RepositoryInterface')) {
-                               $modelType = TX_EXTMVC_Persistence_ClassSchema::MODELTYPE_REPOSITORY;
-                       } elseif ($this->reflectionService->isClassTaggedWith($className, 'valueobject')) {
-                               $modelType = TX_EXTMVC_Persistence_ClassSchema::MODELTYPE_VALUEOBJECT;
-                       } else {
-                               continue;
-                       }
-
-                       $classSchema = new TX_EXTMVC_Persistence_ClassSchema($className);
-                       $classSchema->setModelType($modelType);
-                       foreach ($this->reflectionService->getClassPropertyNames($className) as $propertyName) {
-                               if ($this->reflectionService->isPropertyTaggedWith($className, $propertyName, 'uid')) {
-                                       $classSchema->setUidProperty($propertyName);
-                               }
-                               if (!$this->reflectionService->isPropertyTaggedWith($className, $propertyName, 'transient') && $this->reflectionService->isPropertyTaggedWith($className, $propertyName, 'var')) {
-                                       $classSchema->setProperty($propertyName, implode(' ', $this->reflectionService->getPropertyTagValues($className, $propertyName, 'var')));
-                               }
-                       }
-                       $classSchemata[$className] = $classSchema;
-               }
-               return $classSchemata;
-       }
-
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_Manager.php b/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_Manager.php
deleted file mode 100644 (file)
index f48eb1c..0000000
+++ /dev/null
@@ -1,216 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-require_once(t3lib_extMgm::extPath('extmvc') . 'Classes/Persistence/TX_EXTMVC_Persistence_ObjectStorage.php');
-
-/**
- * The FLOW3 Persistence Manager
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-class Manager implements TX_EXTMVC_Persistence_ManagerInterface {
-
-       /**
-        * The reflection service
-        *
-        * @var F3_FLOW3_Reflection_Service
-        */
-       protected $reflectionService;
-
-       /**
-        * The class schema builder
-        *
-        * @var TX_EXTMVC_Persistence_ClassSchemataBuilder
-        */
-       protected $classSchemataBuilder;
-
-       /**
-        * @var TX_EXTMVC_Persistence_BackendInterface
-        */
-       protected $backend;
-
-       /**
-        * @var TX_EXTMVC_Persistence_Session
-        */
-       protected $session;
-
-       /**
-        * @var F3_FLOW3_Object_ManagerInterface
-        */
-       protected $objectManager;
-
-       /**
-        * Schemata of all classes which need to be persisted
-        *
-        * @var array of TX_EXTMVC_Persistence_ClassSchema
-        */
-       protected $classSchemata = array();
-
-       /**
-        * Constructor
-        *
-        * @param TX_EXTMVC_Persistence_BackendInterface $backend the backend to use for persistence
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function __construct(TX_EXTMVC_Persistence_BackendInterface $backend) {
-               $this->backend = $backend;
-       }
-
-       /**
-        * Injects the reflection service
-        *
-        * @param F3_FLOW3_Reflection_Service $reflectionService The reflection service
-        * @return void
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function injectReflectionService(F3_FLOW3_Reflection_Service $reflectionService) {
-               $this->reflectionService = $reflectionService;
-       }
-
-       /**
-        * Injects the class schemata builder
-        *
-        * @param TX_EXTMVC_Persistence_ClassSchemataBuilder $classSchemataBuilder The class schemata builder
-        * @return void
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function injectClassSchemataBuilder(TX_EXTMVC_Persistence_ClassSchemataBuilder $classSchemataBuilder) {
-               $this->classSchemataBuilder = $classSchemataBuilder;
-       }
-
-       /**
-        * Injects the persistence session
-        *
-        * @param TX_EXTMVC_Persistence_Session $session The persistence session
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function injectSession(TX_EXTMVC_Persistence_Session $session) {
-               $this->session = $session;
-       }
-
-       /**
-        * Injects the object manager
-        *
-        * @param F3_FLOW3_Object_ManagerInterface $objectManager
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function injectObjectManager(F3_FLOW3_Object_ManagerInterface $objectManager) {
-               $this->objectManager = $objectManager;
-       }
-
-       /**
-        * Initializes the persistence manager
-        *
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function initialize() {
-               if (!$this->backend instanceof TX_EXTMVC_Persistence_BackendInterface) throw new TX_EXTMVC_Persistence_Exception_MissingBackend('A persistence backend must be set prior to initializing the persistence manager.', 1215508456);
-               $classNames = array_merge($this->reflectionService->getClassNamesByTag('entity'),
-                       $this->reflectionService->getClassNamesByTag('valueobject'));
-
-               $this->classSchemata = $this->classSchemataBuilder->build($classNames);
-               $this->backend->initialize($this->classSchemata);
-       }
-
-       /**
-        * Returns the current persistence session
-        *
-        * @return TX_EXTMVC_Persistence_Session
-        * @author Robert Lemke <robert@typo3.org>
-        */
-       public function getSession() {
-               return $this->session;
-       }
-
-       /**
-        * Returns the persistence backend
-        *
-        * @return TX_EXTMVC_Persistence_BackendInterface
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function getBackend() {
-               return $this->backend;
-       }
-
-       /**
-        * Returns the class schema for the given class
-        *
-        * @param string $className
-        * @return TX_EXTMVC_Persistence_ClassSchema
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        */
-       public function getClassSchema($className) {
-               return $this->classSchemata[$className];
-       }
-
-       /**
-        * Commits new objects and changes to objects in the current persistence
-        * session into the backend
-        *
-        * @return void
-        * @author Robert Lemke <robert@typo3.org>
-        * @author Karsten Dambekalns <karsten@typo3.org>
-        * @todo eventually replace foreach/attach with a merge method if added to PHP
-        */
-       public function persistAll() {
-               $aggregateRootObjects = new TX_EXTMVC_Persistence_ObjectStorage();
-               $removedObjects = new TX_EXTMVC_Persistence_ObjectStorage();
-
-                       // fetch and inspect objects from all known repositories
-               $repositoryClassNames = $this->reflectionService->getAllImplementationClassNamesForInterface('TX_EXTMVC_Persistence_RepositoryInterface');
-               foreach ($repositoryClassNames as $repositoryClassName) {
-                       $repository = $this->objectManager->getObject($repositoryClassName);
-                       $objects = $repository->getObjects();
-                       foreach ($objects as $object) {
-                               $aggregateRootObjects->attach($object);
-                       }
-                       $removedObjects = $repository->getRemovedObjects();
-                       foreach ($removedObjects as $removedObject) {
-                               $removedObjects->attach($removedObject);
-                       }
-               }
-               $reconstitutedObjects = $this->session->getReconstitutedObjects();
-               foreach ($reconstitutedObjects as $reconstitutedObject) {
-                       $aggregateRootObjects->attach($reconstitutedObject);
-               }
-
-                       // hand in only aggregate roots, leaving handling of subobjects to
-                       // the underlying storage layer
-               $this->backend->setAggregateRootObjects($aggregateRootObjects);
-               $this->backend->setDeletedObjects($removedObjects);
-               $this->backend->commit();
-
-                       // this needs to unregister more than just those, as at least some of
-                       // the subobjects are supposed to go away as well...
-                       // OTOH those do no harm, changes to the unused ones should not happen,
-                       // so all they do is eat some memory.
-               foreach($removedObjects as $removedObject) {
-                       $this->session->unregisterReconstitutedObject($removedObject);
-               }
-       }
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ManagerInterface.php b/typo3/sysext/extbase/Classes/Persistence/TX_EXTMVC_Persistence_ManagerInterface.php
deleted file mode 100644 (file)
index 2bf3608..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * The FLOW3 Persistence Manager interface
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-interface ManagerInterface {
-
-       /**
-        * Initializes the persistence manager
-        *
-        * @return void
-        */
-       public function initialize();
-
-       /**
-        * Returns the current persistence session
-        *
-        * @return TX_EXTMVC_Persistence_Session
-        */
-       public function getSession();
-
-       /**
-        * Returns the persistence backend
-        *
-        * @return TX_EXTMVC_Persistence_BackendInterface
-        */
-       public function getBackend();
-
-       /**
-        * Returns the class schema for the given class
-        *
-        * @param string $className
-        * @return TX_EXTMVC_Persistence_ClassSchema
-        */
-       public function getClassSchema($className);
-
-       /**
-        * Commits new objects and changes to objects in the current persistence
-        * session into the backend
-        *
-        * @return void
-        */
-       public function persistAll();
-
-}
-?>
\ No newline at end of file