Skip to content

Commit 4e4e6a2

Browse files
author
solwininfotech
committed
added required discared files
1 parent d4bcc7f commit 4e4e6a2

File tree

13 files changed

+2171
-0
lines changed

13 files changed

+2171
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
//Register components (via a list of glob patterns)
8+
namespace Magento\NonComposerComponentRegistration;
9+
10+
use RuntimeException;
11+
12+
/**
13+
* Include files from a list of glob patterns
14+
*
15+
* @throws RuntimeException
16+
* @return void
17+
*/
18+
$main = function ()
19+
{
20+
$globPatterns = require __DIR__ . '/registration_globlist.php';
21+
$baseDir = dirname(dirname(__DIR__)) . '/';
22+
23+
foreach ($globPatterns as $globPattern) {
24+
// Sorting is disabled intentionally for performance improvement
25+
$files = glob($baseDir . $globPattern, GLOB_NOSORT);
26+
if ($files === false) {
27+
throw new RuntimeException("glob(): error with '$baseDir$globPattern'");
28+
}
29+
array_map(function ($file) { require_once $file; }, $files);
30+
}
31+
};
32+
33+
$main();

app/etc/db_schema.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
10+
<table name="patch_list" resource="default" comment="List of data/schema patches">
11+
<column xsi:type="int" name="patch_id" identity="true" comment="Patch Auto Increment" />
12+
<column xsi:type="varchar" name="patch_name" length="1024" nullable="false" comment="Patch Class Name" />
13+
<constraint xsi:type="primary" referenceId="PRIMARY">
14+
<column name="patch_id" />
15+
</constraint>
16+
</table>
17+
</schema>

app/etc/di.xml

Lines changed: 1780 additions & 0 deletions
Large diffs are not rendered by default.

app/etc/registration_globlist.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
/**
8+
* Glob patterns relative to the project root directory, used by
9+
* registration.php to generate a list of includes.
10+
*/
11+
return [
12+
'app/code/*/*/cli_commands.php',
13+
'app/code/*/*/registration.php',
14+
'app/design/*/*/*/registration.php',
15+
'app/i18n/*/*/registration.php',
16+
'lib/internal/*/*/registration.php',
17+
'lib/internal/*/*/*/registration.php',
18+
'setup/src/*/*/registration.php'
19+
];

app/etc/vendor_path.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
/**
3+
* Path to Composer vendor directory
4+
*/
5+
return './vendor';

generated/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<IfVersion < 2.4>
2+
order allow,deny
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>
8+

pub/media/.htaccess

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
Options -Indexes
2+
3+
<IfModule mod_php5.c>
4+
php_flag engine 0
5+
</IfModule>
6+
7+
<IfModule mod_php7.c>
8+
php_flag engine 0
9+
</IfModule>
10+
11+
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
12+
Options -ExecCGI
13+
14+
<FilesMatch ".+\.(ph(p[3457]?|t|tml)|[aj]sp|p[ly]|sh|cgi|shtml?|html?)$">
15+
SetHandler default-handler
16+
</FilesMatch>
17+
18+
<IfModule mod_rewrite.c>
19+
20+
############################################
21+
## enable rewrites
22+
23+
Options +FollowSymLinks
24+
RewriteEngine on
25+
26+
## you can put here your pub/media folder path relative to web root
27+
#RewriteBase /magento/pub/media/
28+
29+
############################################
30+
## never rewrite for existing files
31+
RewriteCond %{REQUEST_FILENAME} !-f
32+
33+
############################################
34+
## rewrite everything else to get.php
35+
36+
RewriteRule .* ../get.php [L]
37+
</IfModule>
38+
39+
############################################
40+
## setting MIME types
41+
42+
# JavaScript
43+
AddType application/javascript js jsonp
44+
AddType application/json json
45+
46+
# CSS
47+
AddType text/css css
48+
49+
# Images and icons
50+
AddType image/x-icon ico
51+
AddType image/gif gif
52+
AddType image/png png
53+
AddType image/jpeg jpg
54+
AddType image/jpeg jpeg
55+
56+
# SVG
57+
AddType image/svg+xml svg
58+
59+
# Fonts
60+
AddType application/vnd.ms-fontobject eot
61+
AddType application/x-font-ttf ttf
62+
AddType application/x-font-otf otf
63+
AddType application/x-font-woff woff
64+
AddType application/font-woff2 woff2
65+
66+
# Flash
67+
AddType application/x-shockwave-flash swf
68+
69+
# Archives and exports
70+
AddType application/zip gzip
71+
AddType application/x-gzip gz gzip
72+
AddType application/x-bzip2 bz2
73+
AddType text/csv csv
74+
AddType application/xml xml
75+
76+
<IfModule mod_headers.c>
77+
78+
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$>
79+
Header append Cache-Control public
80+
</FilesMatch>
81+
82+
<FilesMatch .*\.(zip|gz|gzip|bz2|csv|xml)$>
83+
Header append Cache-Control no-store
84+
</FilesMatch>
85+
86+
</IfModule>
87+
88+
<IfModule mod_expires.c>
89+
90+
############################################
91+
## Add default Expires header
92+
## http://developer.yahoo.com/performance/rules.html#expires
93+
94+
ExpiresActive On
95+
96+
# Data
97+
<FilesMatch \.(zip|gz|gzip|bz2|csv|xml)$>
98+
ExpiresDefault "access plus 0 seconds"
99+
</FilesMatch>
100+
ExpiresByType text/xml "access plus 0 seconds"
101+
ExpiresByType text/csv "access plus 0 seconds"
102+
ExpiresByType application/json "access plus 0 seconds"
103+
ExpiresByType application/zip "access plus 0 seconds"
104+
ExpiresByType application/x-gzip "access plus 0 seconds"
105+
ExpiresByType application/x-bzip2 "access plus 0 seconds"
106+
107+
# CSS, JavaScript
108+
<FilesMatch \.(css|js)$>
109+
ExpiresDefault "access plus 1 year"
110+
</FilesMatch>
111+
ExpiresByType text/css "access plus 1 year"
112+
ExpiresByType application/javascript "access plus 1 year"
113+
114+
# Favicon, images, flash
115+
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$>
116+
ExpiresDefault "access plus 1 year"
117+
</FilesMatch>
118+
ExpiresByType image/gif "access plus 1 year"
119+
ExpiresByType image/png "access plus 1 year"
120+
ExpiresByType image/jpg "access plus 1 year"
121+
ExpiresByType image/jpeg "access plus 1 year"
122+
ExpiresByType image/svg+xml "access plus 1 year"
123+
124+
# Fonts
125+
<FilesMatch \.(eot|ttf|otf|svg|woff|woff2)$>
126+
ExpiresDefault "access plus 1 year"
127+
</FilesMatch>
128+
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
129+
ExpiresByType application/x-font-ttf "access plus 1 year"
130+
ExpiresByType application/x-font-otf "access plus 1 year"
131+
ExpiresByType application/x-font-woff "access plus 1 year"
132+
ExpiresByType application/font-woff2 "access plus 1 year"
133+
134+
</IfModule>

pub/media/customer/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<IfVersion < 2.4>
2+
order allow,deny
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>
8+

pub/media/downloadable/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<IfVersion < 2.4>
2+
order allow,deny
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>
8+

pub/media/import/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<IfVersion < 2.4>
2+
order allow,deny
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>
8+

0 commit comments

Comments
 (0)