File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 25
25
}
26
26
27
27
$ params = $ _SERVER ;
28
- $ params [Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS ] = [
29
- DirectoryList::PUB => [DirectoryList::URL_PATH => '' ],
30
- DirectoryList::MEDIA => [DirectoryList::URL_PATH => 'media ' ],
31
- DirectoryList::STATIC_VIEW => [DirectoryList::URL_PATH => 'static ' ],
32
- DirectoryList::UPLOAD => [DirectoryList::URL_PATH => 'media/upload ' ],
33
- ];
28
+ $ params [Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS ] = array_replace_recursive (
29
+ $ params [Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS ],
30
+ [
31
+ DirectoryList::PUB => [DirectoryList::URL_PATH => '' ],
32
+ DirectoryList::MEDIA => [DirectoryList::URL_PATH => 'media ' ],
33
+ DirectoryList::STATIC_VIEW => [DirectoryList::URL_PATH => 'static ' ],
34
+ DirectoryList::UPLOAD => [DirectoryList::URL_PATH => 'media/upload ' ],
35
+ ]
36
+ );
34
37
$ bootstrap = \Magento \Framework \App \Bootstrap::create (BP , $ params );
35
38
/** @var \Magento\Framework\App\Http $app */
36
39
$ app = $ bootstrap ->createApplication (\Magento \Framework \App \Http::class);
You can’t perform that action at this time.
0 commit comments