TYPO3 API  SVNRelease
Dispatcher.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *
00017 *  This script is distributed in the hope that it will be useful,
00018 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 *  GNU General Public License for more details.
00021 *
00022 *  This copyright notice MUST APPEAR in all copies of the script!
00023 ***************************************************************/
00024 
00025 /**
00026  * This class was the main entry point for extbase extensions before v1.3.0. It was replaced by the class
00027  * Tx_Extbase_Bootstrap in combination with the class Tx_Extbase_MVC_Dispatcher to separate responsibilities.
00028  *
00029  * The use of static functions is deprecated since 1.3.0 and will be removed in 1.5.0.
00030  *
00031  * @package Extbase
00032  * @version $ID:$
00033  * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
00034  * @see Tx_Extbase_Bootstrap, Tx_Extbase_MVC_Dispatcher
00035  */
00036 class Tx_Extbase_Dispatcher {
00037 
00038     /**
00039      * @var Tx_Extbase_Configuration_ConfigurationManagerInterface
00040      */
00041     protected static $configurationManager;
00042 
00043     /**
00044      * @var Tx_Extbase_Persistence_Manager
00045      */
00046     protected static $persistenceManager;
00047 
00048     /**
00049      * Injects the Configuration Manager
00050      *
00051      * @param Tx_Extbase_Configuration_ConfigurationManagerInterface An instance of the Configuration Manager
00052      * @return void
00053      */
00054     public function injectConfigurationManager(Tx_Extbase_Configuration_ConfigurationManagerInterface $configurationManager) {
00055         self::$configurationManager = $configurationManager;
00056     }
00057 
00058     /**
00059      * Injects the Persistence Manager
00060      *
00061      * @param Tx_Extbase_Persistence_Manager An instance of the Persistence Manager
00062      * @return void
00063      */
00064     public function injectPersistenceManager(Tx_Extbase_Persistence_Manager $persistenceManager) {
00065         self::$persistenceManager = $persistenceManager;
00066     }
00067 
00068     /**
00069      * Returns the Configuration Manager.
00070      *
00071      * @return Tx_Extbase_Configuration_Manager An instance of the Configuration Manager
00072      * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
00073      */
00074     static public function getConfigurationManager() {
00075         t3lib_div::logDeprecatedFunction();
00076         return self::$configurationManager;
00077     }
00078 
00079     /**
00080      * Returns the Persistance Manager
00081      *
00082      * @return Tx_Extbase_Persistence_Manager An instance of the Persistence Manager
00083      * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
00084      */
00085     static public function getPersistenceManager() {
00086         t3lib_div::logDeprecatedFunction();
00087         return self::$persistenceManager;
00088     }
00089 
00090     /**
00091      * Returns the settings of Extbase
00092      *
00093      * @return array The configuration for the Extbase framework
00094      * @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
00095      */
00096     static public function getExtbaseFrameworkConfiguration() {
00097         t3lib_div::logDeprecatedFunction();
00098         return self::$configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
00099     }
00100 
00101 }
00102 ?>