File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 44 * See COPYING.txt for license details.
55 */
66
7+ /**
8+ * phpcs:disable PSR1.Files.SideEffects
9+ * phpcs:disable Squiz.Functions.GlobalFunction
10+ */
711use Magento \Framework \Config \ConfigOptionsListConstants ;
812
13+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
914register_shutdown_function ("fatalErrorHandler " );
1015
1116try {
17+ // phpcs:ignore Magento2.Security.IncludeFile
1218 require __DIR__ . '/../app/bootstrap.php ' ;
1319 /** @var \Magento\Framework\App\ObjectManagerFactory $objectManagerFactory */
1420 $ objectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , []);
2026 $ logger = $ objectManager ->get (\Psr \Log \LoggerInterface::class);
2127} catch (\Exception $ e ) {
2228 http_response_code (500 );
29+ // phpcs:ignore Magento2.Security.LanguageConstruct
2330 exit (1 );
2431}
2532
3542 } catch (\Exception $ e ) {
3643 http_response_code (500 );
3744 $ logger ->error ("MySQL connection failed: " . $ e ->getMessage ());
45+ // phpcs:ignore Magento2.Security.LanguageConstruct
3846 exit (1 );
3947 }
4048}
4755 !isset ($ cacheConfig [ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS ])) {
4856 http_response_code (500 );
4957 $ logger ->error ("Cache configuration is invalid " );
58+ // phpcs:ignore Magento2.Security.LanguageConstruct
5059 exit (1 );
5160 }
5261 $ cacheBackendClass = $ cacheConfig [ConfigOptionsListConstants::CONFIG_PATH_BACKEND ];
5766 } catch (\Exception $ e ) {
5867 http_response_code (500 );
5968 $ logger ->error ("Cache storage is not accessible " );
69+ // phpcs:ignore Magento2.Security.LanguageConstruct
6070 exit (1 );
6171 }
6272 }
You can’t perform that action at this time.
0 commit comments