1
0
Fork 0

Removed `apps` as an alias for `controllers` in Foxx manifest files

This commit is contained in:
Lucas Dohmen 2014-06-20 14:39:08 +02:00
parent b9c688d117
commit b8e0d95b69
2 changed files with 2 additions and 13 deletions

View File

@ -12,6 +12,7 @@ migrations will also be detailed here.
## 2.2
* Foxx: The usage of `controller.collection` is no longer suggested, it will be deprecated in the next version. Please use `appContext.collection` instead.
* Foxx: The usage of `apps` in manifest files is no longer possible, please use `controllers` instead.
## 2.3

View File

@ -104,19 +104,7 @@ function checkManifest (filename, mf) {
mf.description = "";
}
if (mf.hasOwnProperty("apps")) {
console.warn("Manifest '%s' still contains the deprecated 'apps' attribute. " +
"Please change the attribute name to 'controllers'.", filename);
if (! mf.hasOwnProperty("controllers")) {
// controllers = apps
mf.controllers = mf.apps;
delete mf.apps;
}
}
// validate all attributes specified in the manifest
// Validate all attributes specified in the manifest
// the following attributes are allowed with these types...
var expected = {
"assets": [ false, "object" ],