File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ class Cors implements HttpKernelInterface
27
27
*/
28
28
private $ cors ;
29
29
30
- private $ defaultOptions = array (
31
- 'allowedHeaders ' => array () ,
32
- 'allowedMethods ' => array () ,
33
- 'allowedOrigins ' => array () ,
34
- 'allowedOriginsPatterns ' => array () ,
35
- 'exposedHeaders ' => array () ,
30
+ private $ defaultOptions = [
31
+ 'allowedHeaders ' => [] ,
32
+ 'allowedMethods ' => [] ,
33
+ 'allowedOrigins ' => [] ,
34
+ 'allowedOriginsPatterns ' => [] ,
35
+ 'exposedHeaders ' => [] ,
36
36
'maxAge ' => 0 ,
37
37
'supportsCredentials ' => false ,
38
- ) ;
38
+ ] ;
39
39
40
- public function __construct (HttpKernelInterface $ app , array $ options = array () )
40
+ public function __construct (HttpKernelInterface $ app , array $ options = [] )
41
41
{
42
42
$ this ->app = $ app ;
43
43
$ this ->cors = new CorsService (array_merge ($ this ->defaultOptions , $ options ));
You can’t perform that action at this time.
0 commit comments