extbase settings in servicePHP
2011-12-23
mhuber84
inject typoscript settings to services, repositories, ...
Copy code
- <?php
- /***************************************************************
- * Copyright notice
- * (c) 2011 Dirk Hahn <dirk.hahn@bgm-gmbh.de>, bgm GmbH & Co. KG
- * Markus Wagner <markus.wagner@bgm-gmbh.de>, bgm GmbH & Co. KG
- * Marco Huber <marco.huber@bgm-gmbh.de>, bgm GmbH & Co. KG
- * All rights reserved
- * This script is part of the TYPO3 project. The TYPO3 project is
- * free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- * The GNU General Public License can be found at
- * http://www.gnu.org/copyleft/gpl.html.
- * This script is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
- /**
- * @package syncserver
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
- class Tx_Syncserver_Service_AbstractService implements t3lib_Singleton {
- /**
- * settings
- *
- * @var array $settings
- */
- protected $settings;
- /**
- * @var Tx_Extbase_Configuration_ConfigurationManagerInterface
- */
- protected $configurationManager;
- /**
- * Injects the Configuration Manager
- *
- * @param Tx_Extbase_Configuration_ConfigurationManagerInterface An instance of the Configuration Manager
- * @return void
- */
- public function injectConfigurationManager(Tx_Extbase_Configuration_ConfigurationManagerInterface $configurationManager) {
- $this->configurationManager = $configurationManager;
- }
- /**
- *
- */
- public function initializeObject(){
- $this->settings = $this->configurationManager->getConfiguration('Settings', 'Syncserver', 'syncserver');
- }
- }
- ?>
TYPOSCRIPT EXTBASE SETTINGS
Recent comments: ( 0 )
Please loggin to leave a comment!!