Bug #7598

Automatically set context not checked in Bootstrap

Added by Karsten Dambekalns over 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
Core
Start date:
2010-05-03
Due date:
% Done:

100%

Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:

Description

Exception is thrown in Production context

--- Core/Bootstrap.php    (revision 4252)
+++ Core/Bootstrap.php    (working copy)
@@ -170,8 +170,8 @@
         $this->ensureRequiredEnvironment();
         $this->context = (strlen($context) === 0) ? 'Production' : $context;

-        if ($context !== 'Production' && $context !== 'Development') {
-            exit('FLOW3: Unknown context "' . $context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)');
+        if ($this->context !== 'Production' && $context !== 'Development') {
+            exit('FLOW3: Unknown context "' . $this->context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)');
         }
         $this->FLOW3Package = new \F3\FLOW3\Package\Package('FLOW3', FLOW3_PATH_FLOW3);
     }
@@ -648,4 +648,4 @@
     }
 }

-?>

(Also there is no unittests testing if the bootstrap can be initialised with diffrent contexts - maybe thats useful. The bootstarp is just a accessible mock where the constructor seems not to be called)

#1

Updated by Karsten Dambekalns over 11 years ago

  • Tracker changed from Task to Bug
  • Project changed from 529 to TYPO3.Flow
#2

Updated by Karsten Dambekalns over 11 years ago

  • Category set to Core
  • Target version set to 1.0 alpha 9
#3

Updated by Karsten Dambekalns over 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4263.

Also available in: Atom PDF