silverstripe/sapphire — pull request #309 by simonwelsh (2012-04-12 06:33:15+00:00)
Title: Sapphire rename

The sapphire folder can now be renamed to whatever. FRAMEWORK_DIR can be defined in _ss_environment.php if it's too hard for basename/dir to figure out (mainly using symlinks).

SAPPHIRE_* are just defined as their FRAMEWORK_ equivalents, so code using the former will still work.

The only hardcoded references to sapphire that exist are for the JS for TableListField, so I've added a warning if FRAMEWORK_DIR isn't sapphire and they're used (https://github.com/simonwelsh/sapphire/blob/sapphire-rename/forms/TableListField.php#L238).

Classes/function starting with Sapphire (i.e. SapphireTest, sapphiremce_cleanup) haven't been changed.

References in the docs will need to be updated once things are renamed. Pull requests for cms/installer/docviewer will be made soon.