Skip to content

Commit 184ed16

Browse files
author
Yu Tang
committed
Merge branch 'develop' into FearlessKiwis-MAGETWO-28256-bundle-integration
Conflicts: app/code/Magento/Bundle/Model/LinkManagement.php app/code/Magento/Bundle/Model/OptionRepository.php app/code/Magento/Bundle/Model/Plugin/BundleSaveOptions.php app/code/Magento/Bundle/Model/Product/LinksList.php app/code/Magento/Bundle/Test/Unit/Model/LinkManagementTest.php app/code/Magento/Bundle/Test/Unit/Model/Plugin/BundleSaveOptionsTest.php app/code/Magento/Bundle/Test/Unit/Model/Product/LinksListTest.php dev/tests/api-functional/testsuite/Magento/Bundle/Api/ProductServiceTest.php
2 parents 2f4c22c + ad5e6b2 commit 184ed16

File tree

13,915 files changed

+520495
-543004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,915 files changed

+520495
-543004
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ atlassian*
2020
/lib/internal/flex/varien/.project
2121
/lib/internal/flex/varien/.settings
2222
/node_modules
23+
/.grunt
2324

2425
/pub/media/*.*
2526
!/pub/media/.htaccess

.htaccess

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@
170170

171171
</IfModule>
172172

173-
############################################
174-
## By default allow all access
175-
176-
Order allow,deny
177-
Allow from all
178-
179173
###########################################
180174
## Deny access to release notes to prevent disclosure of the installed Magento version
181175

.htaccess.sample

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,6 @@
167167

168168
</IfModule>
169169

170-
############################################
171-
## By default allow all access
172-
173-
Order allow,deny
174-
Allow from all
175-
176170
###########################################
177171
## Deny access to release notes to prevent disclosure of the installed Magento version
178172

.php_cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
1515
->exclude('dev/tests/functional/vendor')
1616
->exclude('dev/tests/integration/tmp')
1717
->exclude('dev/tests/integration/var')
18-
->exclude('lib/internal/Apache')
1918
->exclude('lib/internal/CardinalCommerce')
2019
->exclude('lib/internal/Cm')
2120
->exclude('lib/internal/Credis')

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: php
22
php:
3-
- 5.4
43
- 5.5
54
- 5.6
65
env:
@@ -11,10 +10,6 @@ env:
1110
- TEST_SUITE=static_annotation
1211
matrix:
1312
exclude:
14-
- php: 5.4
15-
env: TEST_SUITE=static_phpcs
16-
- php: 5.4
17-
env: TEST_SUITE=static_annotation
1813
- php: 5.6
1914
env: TEST_SUITE=static_phpcs
2015
- php: 5.6

CHANGELOG.md

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

Gruntfile.js

Lines changed: 94 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,111 @@
1-
// # Globbing
2-
// for performance reasons we're only matching one level down:
3-
// 'test/spec/{,*/}*.js'
4-
// If you want to recursively match all subfolders, use:
5-
// 'test/spec/**/*.js'
6-
7-
'use strict';
1+
/**
2+
* @copyright Copyright (c) 2015 X.commerce, Inc. (http://www.magentocommerce.com)
3+
*/
84

5+
// For performance use one level down: 'name/{,*/}*.js'
6+
// If you want to recursively match all subfolders, use: 'name/**/*.js'
97
module.exports = function (grunt) {
8+
'use strict';
109

11-
// Require
12-
// --------------------------------------
10+
var _ = require('underscore'),
11+
path = require('path');
1312

14-
// Time how long tasks take. Can help when optimizing build times
13+
require('./dev/tools/grunt/tasks/mage-minify')(grunt);
1514
require('time-grunt')(grunt);
1615

17-
// Load grunt tasks automatically
18-
require('load-grunt-tasks')(grunt);
19-
20-
// Configurable paths and file names
21-
// --------------------------------------
22-
23-
var config = {
24-
path: {
25-
pub: 'pub',
26-
var: 'var',
27-
css: {
28-
blank: 'pub/static/frontend/Magento/blank/en_US/css',
29-
luma: 'pub/static/frontend/Magento/luma/en_US/css'
30-
},
31-
less: {
32-
lib: 'lib/web/css/',
33-
blank: 'app/design/frontend/Magento/blank',
34-
luma: 'app/design/frontend/luma'
35-
},
36-
doc: 'lib/web/css/docs'
37-
},
38-
doc: {
39-
styleName: 'docs'
16+
require('load-grunt-config')(grunt, {
17+
configPath: path.join(process.cwd(), 'dev/tools/grunt/configs'),
18+
init: true,
19+
loadGruntTasks: {
20+
pattern: [
21+
'grunt-*',
22+
'!grunt-template-jasmine-requirejs'
23+
]
4024
}
41-
};
42-
43-
// Define the configuration for all the tasks
44-
// --------------------------------------
45-
46-
grunt.initConfig({
47-
48-
// Project settings
49-
config: config,
25+
});
5026

51-
// Watches files for changes and runs tasks based on the changed files
52-
watch: {
53-
less: {
54-
files: [
55-
'<%= config.path.less.lib %>/{,*/}*.less',
56-
'<%= config.path.less.blank %>/{,*/,*/*/,*/*/*/,*/*/*/*/}*.less', // ToDo UI: find out how to do it recursive
57-
'<%= config.path.less.luma %>/{,*/,*/*/,*/*/*/,*/*/*/*/}*.less'
58-
],
59-
tasks: ['styles']
60-
}
27+
_.each({
28+
/**
29+
* Assembling tasks.
30+
* ToDo UI: define default tasks.
31+
*/
32+
default: function () {
33+
grunt.log.subhead('I\'m default task and at the moment I\'m empty, sorry :/');
6134
},
6235

63-
// Empties folders to start fresh
64-
clean: {
65-
var: {
66-
files: [{
67-
dot: true,
68-
src: [
69-
'<%= config.path.var %>/cache/*',
70-
'<%= config.path.var %>/generation/*',
71-
'<%= config.path.var %>/log/*',
72-
'<%= config.path.var %>/maps/*',
73-
'<%= config.path.var %>/page_cache/*',
74-
'<%= config.path.var %>/tmp/*',
75-
'<%= config.path.var %>/view/*',
76-
'<%= config.path.var %>/view_preprocessed/*'
77-
]
78-
}]
79-
},
80-
pub: {
81-
files: [{
82-
dot: true,
83-
src: [
84-
'<%= config.path.pub %>/static/frontend/*',
85-
'<%= config.path.pub %>/static/adminhtml/*'
86-
]
87-
}]
36+
/**
37+
* Production preparation task.
38+
*/
39+
prod: function (component) {
40+
if (component === 'setup') {
41+
grunt.task.run([
42+
'less:' + component,
43+
'autoprefixer:' + component,
44+
'cssmin:' + component,
45+
'usebanner:' + component
46+
]);
8847
}
89-
},
9048

91-
// Compiles Less to CSS and generates necessary files if requested
92-
less: {
93-
options: {
94-
sourceMap: true,
95-
sourceMapRootpath: '/',
96-
dumpLineNumbers: false, // use 'comments' instead false to output line comments for source
97-
ieCompat: false
98-
},
99-
blank: {
100-
files: {
101-
'<%= config.path.css.blank %>/styles-m.css': '<%= config.path.css.blank %>/styles-m.less',
102-
'<%= config.path.css.blank %>/styles-l.css': '<%= config.path.css.blank %>/styles-l.less'
103-
}
104-
},
105-
luma: {
106-
files: {
107-
'<%= config.path.css.luma %>/styles-m.css': '<%= config.path.css.luma %>/styles-m.less',
108-
'<%= config.path.css.luma %>/styles-l.css': '<%= config.path.css.luma %>/styles-l.less'
109-
}
110-
},
111-
documentation: {
112-
files: {
113-
'<%= config.path.doc %>/<%= config.doc.styleName %>.css': "<%= config.path.doc %>/source/<%= config.doc.styleName %>.less"
114-
}
49+
if (typeof component === 'undefined') {
50+
grunt.log.subhead('Tip: Please make sure that u specify prod subtask. By default prod task do nothing');
11551
}
11652
},
11753

118-
styledocco: {
119-
documentation: {
120-
options: {
121-
name: 'Magento UI Library',
122-
verbose: true,
123-
include: [
124-
'<%= config.path.doc %>/<%= config.doc.styleName %>.css'
125-
//'lib/web/jquery/jquery.min.js',
126-
//'lib/web/jquery/jquery-ui.min',
127-
//'<%= config.path.doc %>/source/js/dropdown.js'
128-
]
129-
},
130-
files: {
131-
'<%= config.path.doc %>': '<%= config.path.doc %>/source' // Todo UI: Check out JS for Styledocco
132-
}
133-
}
134-
}
135-
54+
/**
55+
* Refresh magento frontend & backend.
56+
*/
57+
refresh: [
58+
'exec:all',
59+
'less:blank',
60+
'less:luma',
61+
'less:backend'
62+
],
63+
/**
64+
* Styles for backend theme
65+
*/
66+
backend: [
67+
'less:backend',
68+
'replace:escapeCalc',
69+
'less:override'
70+
],
71+
/**
72+
* Documentation
73+
*/
74+
documentation: [
75+
'less:documentation',
76+
'styledocco:documentation',
77+
'clean:var',
78+
'clean:pub'
79+
],
80+
81+
spec: [
82+
'specRunner:lib',
83+
'specRunner:backend',
84+
'specRunner:frontend'
85+
],
86+
87+
unit: [
88+
'jasmine:lib-unit',
89+
'jasmine:backend-unit',
90+
'jasmine:frontend-unit'
91+
],
92+
93+
integration: [
94+
'jasmine:lib-integration',
95+
'jasmine:backend-integration',
96+
'jasmine:frontend-integration'
97+
],
98+
99+
'legacy-build': [
100+
'mage-minify:legacy'
101+
],
102+
103+
'documentation-banners': [
104+
'usebanner:documentationCss',
105+
'usebanner:documentationLess',
106+
'usebanner:documentationHtml'
107+
]
108+
}, function (task, name) {
109+
grunt.registerTask(name, task);
136110
});
137-
138-
// Default task
139-
// --------------------------------------
140-
grunt.registerTask('default', []); // ToDo UI: define default tasks
141-
142-
// Clean var & pub folders
143-
grunt.registerTask('cleanup', [
144-
'clean:var',
145-
'clean:pub'
146-
]);
147-
148-
// Compile all styles
149-
// --------------------------------------
150-
grunt.registerTask('styles', [
151-
'less:blank',
152-
'less:luma'
153-
]);
154-
155-
// Compile blank styles
156-
grunt.registerTask('styles blank', [
157-
'less:blank'
158-
]);
159-
160-
// Compile luma styles
161-
grunt.registerTask('styles luma', [
162-
'less:luma'
163-
]);
164-
165-
// Documentation
166-
// --------------------------------------
167-
grunt.registerTask('documentation', [
168-
'less:documentation',
169-
'styledocco:documentation',
170-
'cleanup'
171-
]);
172111
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Use the following table to verify you have the correct prerequisites to install
3232
<td><a href="http://devdocs.magento.com/guides/v1.0/install-gde/prereq/apache.html">Apache</a></td>
3333
</tr>
3434
<tr>
35-
<td>PHP 5.4.x (where x = 11 or later) or 5.5.x</td>
35+
<td>PHP 5.5.x or 5.6.x</td>
3636
<td><code>php -v</code></td>
3737
<td><a href="http://devdocs.magento.com/guides/v1.0/install-gde/prereq/php-ubuntu.html">PHP Ubuntu</a><br><a href="http://devdocs.magento.com/guides/v1.0/install-gde/prereq/php-centos.html">PHP CentOS</a></td>
3838
</tr>

app/bootstrap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
umask(0);
1313

1414
/* PHP version validation */
15-
if (version_compare(phpversion(), '5.4.11', '<') === true) {
15+
if (version_compare(phpversion(), '5.5.0', '<') === true) {
1616
if (PHP_SAPI == 'cli') {
17-
echo 'Magento supports PHP 5.4.11 or later. ' .
17+
echo 'Magento supports PHP 5.5.0 or later. ' .
1818
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html';
1919
} else {
2020
echo <<<HTML
2121
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
22-
<p>Magento supports PHP 5.4.11 or later. Please read
22+
<p>Magento supports PHP 5.5.0 or later. Please read
2323
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html">
2424
Magento System Requirements</a>.
2525
</div>
@@ -35,5 +35,5 @@
3535
\Magento\Framework\Profiler::applyConfig($_SERVER['MAGE_PROFILER'], BP, !empty($_REQUEST['isAjax']));
3636
}
3737
if (ini_get('date.timezone') == '') {
38-
date_default_timezone_set(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::DEFAULT_TIMEZONE);
38+
date_default_timezone_set('UTC');
3939
}

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1414
{
1515
/**
16-
* @var \Magento\Core\Helper\Url
16+
* @var \Magento\Framework\Url\Helper\Data
1717
*/
1818
protected $_urlHelper;
1919

2020
/**
2121
* @param \Magento\Backend\Block\Context $context
22-
* @param \Magento\Core\Helper\Url $urlHelper
22+
* @param \Magento\Framework\Url\Helper\Data $urlHelper
2323
* @param array $data
2424
*/
2525
public function __construct(
2626
\Magento\Backend\Block\Context $context,
27-
\Magento\Core\Helper\Url $urlHelper,
27+
\Magento\Framework\Url\Helper\Data $urlHelper,
2828
array $data = []
2929
) {
3030
$this->_urlHelper = $urlHelper;

0 commit comments

Comments
 (0)