File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /* *
4+ * This script belongs to the TYPO3 Flow framework. *
5+ * *
6+ * It is free software; you can redistribute it and/or modify it under *
7+ * the terms of the GNU Lesser General Public License, either version 3 *
8+ * of the License, or (at your option) any later version. *
9+ * *
10+ * The TYPO3 project - inspiring people to share! *
11+ * */
12+
13+ putenv ("FLOW_CONTEXT=Production " );
14+
15+ $ rootPath = isset ($ _SERVER ['FLOW_ROOTPATH ' ]) ? $ _SERVER ['FLOW_ROOTPATH ' ] : FALSE ;
16+ if ($ rootPath === FALSE && isset ($ _SERVER ['REDIRECT_FLOW_ROOTPATH ' ])) {
17+ $ rootPath = $ _SERVER ['REDIRECT_FLOW_ROOTPATH ' ];
18+ }
19+ if ($ rootPath === FALSE ) {
20+ $ rootPath = dirname (__FILE__ ) . '/../ ' ;
21+ } elseif (substr ($ rootPath , -1 ) !== '/ ' ) {
22+ $ rootPath .= '/ ' ;
23+ }
24+
25+ require ($ rootPath . 'Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php ' );
26+
27+ $ context = \TYPO3 \Flow \Core \Bootstrap::getEnvironmentConfigurationSetting ('FLOW_CONTEXT ' ) ?: 'Development ' ;
28+ $ bootstrap = new \TYPO3 \Flow \Core \Bootstrap ($ context );
29+ $ bootstrap ->run ();
You can’t perform that action at this time.
0 commit comments