Ticket #2121 (closed defect: wontfix)
Allow TEMP_FOLDER to be set from _config.php
| Reported by: | mpeel | Assigned to: | sminnee |
|---|---|---|---|
| Type: | defect | Priority: | critical |
| Milestone: | Component: | Sapphire Framework | |
| Version: | 2.2.0 | Severity: | medium effort / impact |
| Keywords: | Cc: | simon_w, mpeel | |
| Due date: | Harvest Task: | (Unknown) | |
| Invoice sent to client: | 0 | Hours: |
Description
Currently if you want to put the TEMP_FOLDER anywhere except in /tmp or the webroot, you need to hack sapphire/core/Core.php, and change the define() of TEMP_FOLDER.
It would be cool if you could instead set this in _config.php. The problem at the moment is that Core.php is loaded before _config.php is, and this can't be easily fixed because we need the TEMP_FOLDER directive to be defined before the class/template manifest is loaded/created. You also can't simple define TEMP_FOLDER in _config.php because apparently PHP doesn't let you re-define constants (according to aoneil), and by the time _config.php is loaded, it's already been defined by Core.php
If this can't be accomplished because it's a chicken and egg scenario, it's probably not a big deal.
