Inject parameters

This commit is contained in:
Roeland Jago Douma 2016-07-22 10:11:53 +02:00
parent 4b4990c48f
commit 1b73a63041
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 6 additions and 0 deletions

View File

@ -330,6 +330,12 @@ class DIContainer extends SimpleContainer implements IAppContainer {
);
});
/**
* App Framework default arguments
*/
$this->registerParameter('corsMethods', 'PUT, POST, GET, DELETE, PATCH');
$this->registerParameter('corsAllowedHeaders', 'Authorization, Content-Type, Accept');
$this->registerParameter('corsMaxAge', 1728000);
/**
* Middleware