2 /***************************************************************
5 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
26 * This class was the main entry point for extbase extensions before v1.3.0. It was replaced by the class
27 * Tx_Extbase_Bootstrap in combination with the class Tx_Extbase_MVC_Dispatcher to separate responsibilities.
29 * The use of static functions is deprecated since 1.3.0 and will be removed in 1.5.0.
33 * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
34 * @see Tx_Extbase_Bootstrap, Tx_Extbase_MVC_Dispatcher
36 class Tx_Extbase_Dispatcher
{
39 * @var Tx_Extbase_Configuration_ConfigurationManagerInterface
41 protected static $configurationManager;
44 * @var Tx_Extbase_Persistence_Manager
46 protected static $persistenceManager;
49 * Injects the Configuration Manager
51 * @param Tx_Extbase_Configuration_ConfigurationManagerInterface An instance of the Configuration Manager
54 public function injectConfigurationManager(Tx_Extbase_Configuration_ConfigurationManagerInterface
$configurationManager) {
55 self
::$configurationManager = $configurationManager;
59 * Injects the Persistence Manager
61 * @param Tx_Extbase_Persistence_Manager An instance of the Persistence Manager
64 public function injectPersistenceManager(Tx_Extbase_Persistence_Manager
$persistenceManager) {
65 self
::$persistenceManager = $persistenceManager;
69 * Returns the Configuration Manager.
71 * @return Tx_Extbase_Configuration_Manager An instance of the Configuration Manager
72 * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
74 static public function getConfigurationManager() {
75 t3lib_div
::logDeprecatedFunction();
76 return self
::$configurationManager;
80 * Returns the Persistance Manager
82 * @return Tx_Extbase_Persistence_Manager An instance of the Persistence Manager
83 * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
85 static public function getPersistenceManager() {
86 t3lib_div
::logDeprecatedFunction();
87 return self
::$persistenceManager;
91 * Returns the settings of Extbase
93 * @return array The configuration for the Extbase framework
94 * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
96 static public function getExtbaseFrameworkConfiguration() {
97 t3lib_div
::logDeprecatedFunction();
98 return self
::$configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface
::CONFIGURATION_TYPE_FRAMEWORK
);