Task #7578

small Bug in Bootstrap

Added by Daniel Poetzinger over 5 years ago. Updated almost 3 years ago.

Status:Resolved Start date:2010-05-03
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:-
Target version:-

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)


Related issues

related to TYPO3.Flow - Bug #7598: Automatically set context not checked in Bootstrap Resolved 2010-05-03

History

#1 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns
  • Target version set to 518
  • Start date changed from 2010-05-01 to 2010-05-03

#2 Updated by Karsten Dambekalns over 5 years ago

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

#3 Updated by Robert Lemke about 4 years ago

  • Project changed from Core Team to Base Distribution
  • Target version deleted (518)

#4 Updated by Robert Lemke almost 3 years ago

  • Project changed from Base Distribution to TYPO3.Neos

Also available in: Atom PDF